Fix: Automatic scroll to top after Modal loading

Fix: Disable body scroll if modal is open.
This commit is contained in:
buddh4 2017-07-21 20:53:00 +02:00
parent 2a30b3d0b9
commit 0f00da0e11
4 changed files with 7 additions and 2 deletions

View File

@ -429,6 +429,7 @@ humhub.module('ui.modal', function (module, require, $) {
this.$.find('input[type="text"]:visible, textarea:visible, [contenteditable="true"]:visible').first().focus();
this.checkAriaLabel();
this.updateDialogOptions();
this.$.scrollTop(0);
return this;
};

View File

@ -62,4 +62,8 @@ input[type=select] {
.langSwitcher {
display: inline-block;
}
[data-ui-show-more] {
overflow:hidden;
}

View File

@ -14,7 +14,7 @@
}
.modal-open {
overflow: visible;
//overflow: visible;
}
.modal {

File diff suppressed because one or more lines are too long