mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
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:
parent
d9e56ef69a
commit
483528affe
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
16
modules/ve-mw/ui/layouts/ve.ui.MWVerticalLayout.js
Normal file
16
modules/ve-mw/ui/layouts/ve.ui.MWVerticalLayout.js
Normal 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 );
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue