Merge pull request #15256 from edx/ammar/edu-292-move-dialog-fix

move dialog fix
This commit is contained in:
Muhammad Ammar
2017-06-12 23:54:52 +05:00
committed by GitHub
2 changed files with 9 additions and 2 deletions

View File

@@ -89,6 +89,10 @@ function($, Backbone, _, gettext, BaseView, XBlockViewUtils, MoveXBlockUtils, Ht
Feedback.prototype.outFocus.apply(this);
},
resize: function() {
// Do Nothing. Overridden to use our own styling instead of one provided by base modal
},
focusModal: function() {
Feedback.prototype.inFocus.apply(this, [this.options.modalWindowClass]);
$(this.options.modalWindowClass).focus();

View File

@@ -288,8 +288,11 @@
// ------------------------
// Move XBlock Modal
.modal-window.move-modal {
top: 10% !important;
.move-modal {
position: fixed;
left: 50%;
top: 50%;
@include transform(translate(-50%,-50%));
}
.move-xblock-modal {