jenkins-bot has submitted this change and it was merged.
Change subject: IndexLayout: Add 'expanded' option, passed through to
StackLayout
......................................................................
IndexLayout: Add 'expanded' option, 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(-)
Approvals:
Jforrester: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: Ibc59f96ea76706ac8d44c11c34c5cba4c9c5ac0c
Gerrit-PatchSet: 2
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits