mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Chain scroll calls instead of just calling after each other"
This commit is contained in:
commit
254b14f3bf
|
@ -469,9 +469,11 @@ ve.ui.MWTransclusionOutlineTemplateWidget.prototype.onToggleUnusedFields = funct
|
|||
}
|
||||
|
||||
if ( !visibility && fromClick ) {
|
||||
this.header.scrollElementIntoView();
|
||||
if ( this.parameterList ) {
|
||||
this.parameterList.ensureVisibilityOfFirstCheckedParameter();
|
||||
}
|
||||
var self = this;
|
||||
this.header.scrollElementIntoView().then( function () {
|
||||
if ( self.parameterList ) {
|
||||
self.parameterList.ensureVisibilityOfFirstCheckedParameter();
|
||||
}
|
||||
} );
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue