From a7537e9465ff947ac7695b1d5531cc7182357cb9 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 29 Feb 2016 18:46:49 -0800 Subject: [PATCH] ActionMenuPopupWidget: Prevent ClippableElement from overwriting our width hack This whole class is a terrible hack, and we should instead implement a proper facility for what we need in OOUI. Bug: T128436 Change-Id: I8777a6e36d238dc13c9060b74b7a72c6933082f6 --- modules/ooui/mw.echo.ui.ActionMenuPopupWidget.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ooui/mw.echo.ui.ActionMenuPopupWidget.js b/modules/ooui/mw.echo.ui.ActionMenuPopupWidget.js index f46368c95..1cbbd94e9 100644 --- a/modules/ooui/mw.echo.ui.ActionMenuPopupWidget.js +++ b/modules/ooui/mw.echo.ui.ActionMenuPopupWidget.js @@ -61,6 +61,9 @@ // which in our case is not the point at all. We need the menu // to be larger, so force this setting: this.menu.$element.css( 'width', this.menuWidth ); + // HACK: Prevent ClippableElement from overwriting this width value on scroll + // or window resize + this.menu.toggleClipping( false ); }; /**