Fix "Save current filter settings" menu and legend overlap
authorpetarpetkovic <ppetkovic@wikimedia.org>
Thu, 7 Dec 2017 02:06:48 +0000 (03:06 +0100)
committerpetarpetkovic <ppetkovic@wikimedia.org>
Thu, 7 Dec 2017 02:06:48 +0000 (03:06 +0100)
Pass overlay to SaveFiltersPopupButtonWidget, so it gets onto same
stacking context as the rest of popup widgets.

Bug: T182269
Change-Id: I2c45f82840f651c39a0e572e003c82cbbd8c1c2e

resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterTagMultiselectWidget.js

index a7054e9..91a2d5f 100644 (file)
                if ( !mw.user.isAnon() ) {
                        this.saveQueryButton = new mw.rcfilters.ui.SaveFiltersPopupButtonWidget(
                                this.controller,
-                               this.queriesModel
+                               this.queriesModel,
+                               {
+                                       $overlay: this.$overlay
+                               }
                        );
 
                        this.saveQueryButton.$element.on( 'mousedown', function ( e ) { e.stopPropagation(); } );