MDL-46712: Center EditPDF window on browser resize / zoom
This commit is contained in:
committed by
Jetha Chan
parent
29507f2816
commit
d2d568a034
+12
@@ -3330,6 +3330,7 @@ EDITOR.prototype = {
|
||||
}
|
||||
this.dialogue.centerDialogue();
|
||||
this.dialogue.show();
|
||||
drawingcanvas.on('windowresize', this.resize, this);
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -3836,6 +3837,16 @@ EDITOR.prototype = {
|
||||
this.currentedit.path = [];
|
||||
},
|
||||
|
||||
/**
|
||||
* Resize the dialogue window when the browser is resized.
|
||||
* @public
|
||||
* @method resize
|
||||
*/
|
||||
resize : function() {
|
||||
this.dialogue.centerDialogue();
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Factory method for creating annotations of the correct subclass.
|
||||
* @public
|
||||
@@ -4124,6 +4135,7 @@ M.assignfeedback_editpdf.editor.init = M.assignfeedback_editpdf.editor.init || f
|
||||
"graphics",
|
||||
"json",
|
||||
"event-move",
|
||||
"event-resize",
|
||||
"querystring-stringify-simple",
|
||||
"moodle-core-notification-dialog",
|
||||
"moodle-core-notification-exception",
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+12
@@ -3330,6 +3330,7 @@ EDITOR.prototype = {
|
||||
}
|
||||
this.dialogue.centerDialogue();
|
||||
this.dialogue.show();
|
||||
drawingcanvas.on('windowresize', this.resize, this);
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -3836,6 +3837,16 @@ EDITOR.prototype = {
|
||||
this.currentedit.path = [];
|
||||
},
|
||||
|
||||
/**
|
||||
* Resize the dialogue window when the browser is resized.
|
||||
* @public
|
||||
* @method resize
|
||||
*/
|
||||
resize : function() {
|
||||
this.dialogue.centerDialogue();
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Factory method for creating annotations of the correct subclass.
|
||||
* @public
|
||||
@@ -4124,6 +4135,7 @@ M.assignfeedback_editpdf.editor.init = M.assignfeedback_editpdf.editor.init || f
|
||||
"graphics",
|
||||
"json",
|
||||
"event-move",
|
||||
"event-resize",
|
||||
"querystring-stringify-simple",
|
||||
"moodle-core-notification-dialog",
|
||||
"moodle-core-notification-exception",
|
||||
|
||||
@@ -325,6 +325,7 @@ EDITOR.prototype = {
|
||||
}
|
||||
this.dialogue.centerDialogue();
|
||||
this.dialogue.show();
|
||||
drawingcanvas.on('windowresize', this.resize, this);
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -831,6 +832,16 @@ EDITOR.prototype = {
|
||||
this.currentedit.path = [];
|
||||
},
|
||||
|
||||
/**
|
||||
* Resize the dialogue window when the browser is resized.
|
||||
* @public
|
||||
* @method resize
|
||||
*/
|
||||
resize : function() {
|
||||
this.dialogue.centerDialogue();
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Factory method for creating annotations of the correct subclass.
|
||||
* @public
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"graphics",
|
||||
"json",
|
||||
"event-move",
|
||||
"event-resize",
|
||||
"querystring-stringify-simple",
|
||||
"moodle-core-notification-dialog",
|
||||
"moodle-core-notification-exception",
|
||||
|
||||
Reference in New Issue
Block a user