Bartosz Dziewoński has uploaded a new change for review. https://gerrit.wikimedia.org/r/193122
Change subject: PHP PanelLayout: Fix getConfig() for 'expanded' config option ...................................................................... PHP PanelLayout: Fix getConfig() for 'expanded' config option It defaults to true. Change-Id: I1038d2397c2cccc37efb756151e0865dfca045cf --- M php/layouts/PanelLayout.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/22/193122/1 diff --git a/php/layouts/PanelLayout.php b/php/layouts/PanelLayout.php index 8013b0f..4f0a429 100644 --- a/php/layouts/PanelLayout.php +++ b/php/layouts/PanelLayout.php @@ -43,8 +43,8 @@ if ( $this->hasClass( 'oo-ui-panelLayout-padded' ) ) { $config['padded'] = true; } - if ( $this->hasClass( 'oo-ui-panelLayout-expanded' ) ) { - $config['expanded'] = true; + if ( !$this->hasClass( 'oo-ui-panelLayout-expanded' ) ) { + $config['expanded'] = false; } $config['content'] = $this->content; return parent::getConfig( $config ); -- To view, visit https://gerrit.wikimedia.org/r/193122 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1038d2397c2cccc37efb756151e0865dfca045cf Gerrit-PatchSet: 1 Gerrit-Project: oojs/ui Gerrit-Branch: master Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits