mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Don't access the stacklayout directly
Bug: T310867 Change-Id: I95cbdee26ead46c2d8803ddb3a9e06304f793407
This commit is contained in:
parent
479732f516
commit
a0c0465d67
|
@ -74,7 +74,7 @@ ve.ui.MWTemplateDialog.prototype.getReadyProcess = function ( data ) {
|
|||
this.bookletLayout.focus();
|
||||
}
|
||||
|
||||
this.bookletLayout.stackLayout.getItems().forEach( function ( page ) {
|
||||
this.bookletLayout.getPagesOrdered().forEach( function ( page ) {
|
||||
if ( page instanceof ve.ui.MWParameterPage ) {
|
||||
page.updateSize();
|
||||
}
|
||||
|
|
|
@ -586,7 +586,7 @@ ve.ui.MWTransclusionDialog.prototype.onWindowResize = function () {
|
|||
if ( this.transclusionModel ) {
|
||||
this.autoExpandSidebar();
|
||||
|
||||
this.bookletLayout.stackLayout.getItems().forEach( function ( page ) {
|
||||
this.bookletLayout.getPagesOrdered().forEach( function ( page ) {
|
||||
if ( page instanceof ve.ui.MWParameterPage ) {
|
||||
page.updateSize();
|
||||
}
|
||||
|
|
|
@ -208,6 +208,15 @@ ve.ui.MWTwoPaneTransclusionDialogLayout.prototype.getOutlineControls = function
|
|||
return this.outlineControlsWidget;
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the list of pages on the stack ordered by appearance.
|
||||
*
|
||||
* @return {OO.ui.PageLayout[]}
|
||||
*/
|
||||
ve.ui.MWTwoPaneTransclusionDialogLayout.prototype.getPagesOrdered = function () {
|
||||
return this.stackLayout.getItems();
|
||||
};
|
||||
|
||||
/**
|
||||
* Get a page by its symbolic name.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue