Henning Snater has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/73938


Change subject: jQuery.wikibase.entityselector: Reposition menu when refreshing
......................................................................

jQuery.wikibase.entityselector: Reposition menu when refreshing

(requires change Iced14408763658e9c92fe2eb65e7e66ea5c5e000)

Change-Id: I7d548bfef0887cdd2ef1b694cdea01886e6ee415
---
M lib/resources/jquery.wikibase/jquery.wikibase.entityselector.js
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/38/73938/1

diff --git a/lib/resources/jquery.wikibase/jquery.wikibase.entityselector.js 
b/lib/resources/jquery.wikibase/jquery.wikibase.entityselector.js
index 776eff6..a8f517a 100644
--- a/lib/resources/jquery.wikibase/jquery.wikibase.entityselector.js
+++ b/lib/resources/jquery.wikibase/jquery.wikibase.entityselector.js
@@ -373,6 +373,10 @@
                                this.offset = 0;
                                this.menu.element.children().remove();
                                this.menu.refresh();
+
+                               // Reposition to be sure the menu is aligned 
correctly (e.g. on window's resize
+                               // event):
+                               this.repositionMenu();
                        } else if ( originalType !== 'programmatic' ) {
                                // Do not close the list of suggestions when 
programmatically selecting an entity
                                // (e.g by typing an exact, unique entity 
label), allowing the user to check that

-- 
To view, visit https://gerrit.wikimedia.org/r/73938
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7d548bfef0887cdd2ef1b694cdea01886e6ee415
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Henning Snater <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to