From 090ce1d0e570fd0ac76c303d246ce0ebb86867fc Mon Sep 17 00:00:00 2001 From: muhammad-ammar Date: Wed, 7 Jun 2017 17:02:46 +0500 Subject: [PATCH] move dialog fix EDUCATOR-292 --- cms/static/js/views/modals/move_xblock_modal.js | 4 ++++ cms/static/sass/elements/_modal-window.scss | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/cms/static/js/views/modals/move_xblock_modal.js b/cms/static/js/views/modals/move_xblock_modal.js index 2da157b4be..aa4a215fcd 100644 --- a/cms/static/js/views/modals/move_xblock_modal.js +++ b/cms/static/js/views/modals/move_xblock_modal.js @@ -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(); diff --git a/cms/static/sass/elements/_modal-window.scss b/cms/static/sass/elements/_modal-window.scss index a12a04c5f3..95749ec42c 100644 --- a/cms/static/sass/elements/_modal-window.scss +++ b/cms/static/sass/elements/_modal-window.scss @@ -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 {