Esanders has uploaded a new change for review. https://gerrit.wikimedia.org/r/239822
Change subject: Add 'expanded' option to IndexLayout which is passed through to StackLayout ...................................................................... Add 'expanded' option to IndexLayout which is passed through to StackLayout Allows IndexLayouts to be used in variable height situations. Change-Id: Ibc59f96ea76706ac8d44c11c34c5cba4c9c5ac0c --- M src/layouts/IndexLayout.js 1 file changed, 5 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/22/239822/1 diff --git a/src/layouts/IndexLayout.js b/src/layouts/IndexLayout.js index 340b5c2..2dc71c9 100644 --- a/src/layouts/IndexLayout.js +++ b/src/layouts/IndexLayout.js @@ -42,6 +42,7 @@ * @constructor * @param {Object} [config] Configuration options * @cfg {boolean} [continuous=false] Show all cards, one after another + * @cfg {boolean} [expanded=true] Expand the content panel to fill the entire parent element. * @cfg {boolean} [autoFocus=true] Focus on the first focusable element when a new card is displayed. */ OO.ui.IndexLayout = function OoUiIndexLayout( config ) { @@ -55,7 +56,10 @@ this.currentCardName = null; this.cards = {}; this.ignoreFocus = false; - this.stackLayout = new OO.ui.StackLayout( { continuous: !!config.continuous } ); + this.stackLayout = new OO.ui.StackLayout( { + continuous: !!config.continuous, + expanded: config.expanded + } ); this.$content.append( this.stackLayout.$element ); this.autoFocus = config.autoFocus === undefined || !!config.autoFocus; -- To view, visit https://gerrit.wikimedia.org/r/239822 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibc59f96ea76706ac8d44c11c34c5cba4c9c5ac0c Gerrit-PatchSet: 1 Gerrit-Project: oojs/ui Gerrit-Branch: master Gerrit-Owner: Esanders <esand...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits