Skip to content

Commit f85b998

Browse files
committed
Autocomplete: Re-position menu after resizing, not before. Fixes #6648 - Autocomplete menu position issue when positioned to the right.
1 parent dfb3544 commit f85b998

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ui/jquery.ui.autocomplete.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,13 @@ $.widget( "ui.autocomplete", {
334334
// TODO refresh should check if the active item is still in the dom, removing the need for a manual deactivate
335335
this.menu.deactivate();
336336
this.menu.refresh();
337-
this.menu.element.show().position( $.extend({
338-
of: this.element
339-
}, this.options.position ));
340337

338+
// size and position menu
339+
ul.show();
341340
this._resizeMenu();
341+
ul.position( $.extend({
342+
of: this.element
343+
}, this.options.position ));
342344
},
343345

344346
_resizeMenu: function() {

0 commit comments

Comments
 (0)