MDL-66601 atto_image: Set the max-height of the image selection dialogue

This commit is contained in:
Mihail Geshoski
2020-06-10 12:21:21 +08:00
parent bbc79e490a
commit deca8028d9
6 changed files with 14 additions and 5 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -410,7 +410,9 @@ Y.namespace('M.atto_image').Button = Y.Base.create('button', Y.M.editor_atto.Edi
focusAfterHide: true,
focusOnShowSelector: SELECTORS.INPUTURL
});
// Set a maximum width for the dialog. This will prevent the dialog width to extend beyond the screen width
// in cases when the uploaded image has larger width.
dialogue.get('boundingBox').setStyle('maxWidth', '90%');
// Set the dialogue content, and then show the dialogue.
dialogue.set('bodyContent', this._getDialogueContent())
.show();
File diff suppressed because one or more lines are too long
@@ -410,7 +410,9 @@ Y.namespace('M.atto_image').Button = Y.Base.create('button', Y.M.editor_atto.Edi
focusAfterHide: true,
focusOnShowSelector: SELECTORS.INPUTURL
});
// Set a maximum width for the dialog. This will prevent the dialog width to extend beyond the screen width
// in cases when the uploaded image has larger width.
dialogue.get('boundingBox').setStyle('maxWidth', '90%');
// Set the dialogue content, and then show the dialogue.
dialogue.set('bodyContent', this._getDialogueContent())
.show();
+3 -1
View File
@@ -408,7 +408,9 @@ Y.namespace('M.atto_image').Button = Y.Base.create('button', Y.M.editor_atto.Edi
focusAfterHide: true,
focusOnShowSelector: SELECTORS.INPUTURL
});
// Set a maximum width for the dialog. This will prevent the dialog width to extend beyond the screen width
// in cases when the uploaded image has larger width.
dialogue.get('boundingBox').setStyle('maxWidth', '90%');
// Set the dialogue content, and then show the dialogue.
dialogue.set('bodyContent', this._getDialogueContent())
.show();