Bartosz Dziewoński has uploaded a new change for review.
https://gerrit.wikimedia.org/r/205298
Change subject: MenuLayout: Remove some redundant code
......................................................................
MenuLayout: Remove some redundant code
Calling this.updateSizes() at the end handles this.
Follow-up to I1c42fa4fa79efe023b3652717b3cb8545caeb01a.
Change-Id: I029ec6890a203dac0a2e75d26d478e67b93e252e
---
M src/layouts/MenuLayout.js
1 file changed, 1 insertion(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/98/205298/1
diff --git a/src/layouts/MenuLayout.js b/src/layouts/MenuLayout.js
index 80a4e6b..1d5ee3a 100644
--- a/src/layouts/MenuLayout.js
+++ b/src/layouts/MenuLayout.js
@@ -78,13 +78,11 @@
// Initialization
this.$menu
- .addClass( 'oo-ui-menuLayout-menu' )
- .css( this.menuPosition.sizeProperty, this.menuSize );
+ .addClass( 'oo-ui-menuLayout-menu' );
this.$content.addClass( 'oo-ui-menuLayout-content' );
this.$element
.addClass( 'oo-ui-menuLayout ' + this.menuPosition.className )
.append( this.$content, this.$menu );
- this.toggleMenu( this.showMenu );
this.updateSizes();
};
--
To view, visit https://gerrit.wikimedia.org/r/205298
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I029ec6890a203dac0a2e75d26d478e67b93e252e
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits