RCFilters UI: Use backwards-aligned anchorless popups now that they work
authorRoan Kattouw <roan.kattouw@gmail.com>
Fri, 26 May 2017 20:14:45 +0000 (13:14 -0700)
committerCatrope <roan@wikimedia.org>
Tue, 30 May 2017 20:55:29 +0000 (20:55 +0000)
Bug: T159906
Depends-On: I14c65f115c704114ba2387d6a89ed7aed44f8238
Change-Id: Id83d9d9b6424bc98abcddf647c47b96baf02de3d

resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.FilterItemHighlightButton.js
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.SavedLinksListWidget.js

index 616608e..835cec8 100644 (file)
                        icon: 'highlight',
                        indicator: 'down',
                        popup: {
-                               // TODO: There is a bug in non-anchored popups in
-                               // OOUI, so we set this popup to "anchored" until
-                               // the bug is fixed.
-                               // See: https://phabricator.wikimedia.org/T159906
-                               anchor: true,
+                               anchor: false,
                                padded: true,
                                align: 'backwards',
                                horizontalPosition: 'end',
index 8c021d0..3b5e7d9 100644 (file)
@@ -51,7 +51,7 @@
                        popup: {
                                width: 300,
                                anchor: false,
-                               align: 'forwards',
+                               align: 'backwards',
                                $autoCloseIgnore: this.$overlay,
                                $content: this.menu.$element
                        }