Drop StackLayout

Gets rid of some unused behaviors that we've already disconnected.
Brings the remaining styling into VE files.

Bug: T312524
Change-Id: Ie94472019ba41124831621c45713861297219594
This commit is contained in:
Adam Wight 2022-07-06 16:04:18 +02:00
parent d9e56ef69a
commit 483528affe
4 changed files with 28 additions and 7 deletions

View file

@ -2132,6 +2132,7 @@
"modules/ve-mw/ui/dialogs/ve.ui.MWRequiredParamBlankConfirmDialog.js",
"modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js",
"modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js",
"modules/ve-mw/ui/layouts/ve.ui.MWVerticalLayout.js",
"modules/ve-mw/ui/layouts/ve.ui.MWTwoPaneTransclusionDialogLayout.js",
"modules/ve-mw/ui/tools/ve.ui.MWTransclusionDialogTool.js",
"modules/ve-mw/ui/contextitems/ve.ui.MWTransclusionContextItem.js",

View file

@ -27,10 +27,7 @@ ve.ui.MWTwoPaneTransclusionDialogLayout = function VeUiMWTwoPaneTransclusionDial
this.currentPageName = null;
this.pages = {};
this.ignoreFocus = false;
this.stackLayout = new OO.ui.StackLayout( {
continuous: true,
expanded: this.expanded
} );
this.stackLayout = new ve.ui.MWVerticalLayout();
this.setContentPanel( this.stackLayout );
this.sidebar = new ve.ui.MWTransclusionOutlineWidget();
this.outlineVisible = false;

View file

@ -0,0 +1,16 @@
/**
* Container for a vertical series of PageLayouts, similar to OO.ui.HorizontalLayout
*/
ve.ui.MWVerticalLayout = function VeUiMwVerticalLayout() {
// Parent constructor
ve.ui.MWVerticalLayout.super.call( this, { scrollable: true } );
// Mixin constructors
OO.ui.mixin.GroupElement.call( this, { $group: this.$element } );
// Initialization
this.$element.addClass( 've-ui-mwVerticalLayout' );
};
OO.inheritClass( ve.ui.MWVerticalLayout, OO.ui.PanelLayout );
OO.mixinClass( ve.ui.MWVerticalLayout, OO.ui.mixin.GroupElement );

View file

@ -19,9 +19,16 @@
/* We don't want anything to collapse left/right, so shouldn't use margin */
padding: 0 48px;
&.oo-ui-stackLayout-continuous > .oo-ui-panelLayout-scrollable {
// Override from PanelLayout; only the StackLayout must be scrollable
overflow: hidden;
&.ve-ui-mwVerticalLayout {
> .oo-ui-panelLayout-scrollable {
// Override from PanelLayout; only the StackLayout must be scrollable
overflow: hidden;
}
> .oo-ui-panelLayout {
display: block;
position: relative;
}
}
> .oo-ui-panelLayout {