mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +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 ) {
|
if ( !visibility && fromClick ) {
|
||||||
this.header.scrollElementIntoView();
|
var self = this;
|
||||||
if ( this.parameterList ) {
|
this.header.scrollElementIntoView().then( function () {
|
||||||
this.parameterList.ensureVisibilityOfFirstCheckedParameter();
|
if ( self.parameterList ) {
|
||||||
|
self.parameterList.ensureVisibilityOfFirstCheckedParameter();
|
||||||
}
|
}
|
||||||
|
} );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue