mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Drop StackLayout"
This commit is contained in:
commit
e6737b55af
|
@ -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 54px;
|
||||
|
||||
&.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