MDL-55324 atto_media: Reduce maximum height of atto modal

Previously after adding a few sources or expanding a few fieldsets
the modal would be pushed off the bottom of the screen. Here we
reduce the maximum height to allow it to remain visible.
This commit is contained in:
Cameron Ball 2016-11-24 10:59:21 +08:00
parent e24699cc7a
commit 4d85886b5f
No known key found for this signature in database
GPG Key ID: 305B7F70214D810C
6 changed files with 3 additions and 5 deletions

View File

@ -6,7 +6,7 @@
}
.atto_form.atto_media > .tab-content {
max-height: 60vh;
max-height: 45vh;
overflow-x: hidden;
padding-left: 20px;
padding-right: 20px;

View File

@ -58,6 +58,7 @@ Feature: Add media to Atto
And I click on "Private files" "link" in the ".moodle-dialogue-base[aria-hidden='false'] .fp-repo-area" "css_element"
And I click on "moodle-logo.png" "link"
And I click on "Select this file" "button" in the ".moodle-dialogue-base[aria-hidden='false']" "css_element"
And I change window size to "large"
And I set the field with xpath "//*[contains(concat(' ', normalize-space(@class), ' '), ' atto_media_width_entry ')]" to "420"
And I set the field with xpath "//*[contains(concat(' ', normalize-space(@class), ' '), ' atto_media_height_entry ')]" to "69"
And I click on "Display options" "link"

View File

@ -740,7 +740,6 @@ Y.namespace('M.atto_media').Button = Y.Base.create('button', Y.M.editor_atto.Edi
* @private
*/
_addMediaSourceComponent: function(element, callback) {
window.console.log(this.get('help').addsource);
var mediumType = this._getMediumTypeFromTabPane(element.ancestor('.tab-pane'));
var context = this._getContext({
multisource: true,

File diff suppressed because one or more lines are too long

View File

@ -740,7 +740,6 @@ Y.namespace('M.atto_media').Button = Y.Base.create('button', Y.M.editor_atto.Edi
* @private
*/
_addMediaSourceComponent: function(element, callback) {
window.console.log(this.get('help').addsource);
var mediumType = this._getMediumTypeFromTabPane(element.ancestor('.tab-pane'));
var context = this._getContext({
multisource: true,

View File

@ -738,7 +738,6 @@ Y.namespace('M.atto_media').Button = Y.Base.create('button', Y.M.editor_atto.Edi
* @private
*/
_addMediaSourceComponent: function(element, callback) {
window.console.log(this.get('help').addsource);
var mediumType = this._getMediumTypeFromTabPane(element.ancestor('.tab-pane'));
var context = this._getContext({
multisource: true,