Skip to content

Commit

Permalink
Autocomplete: Re-position menu after resizing, not before. Fixes #664…
Browse files Browse the repository at this point in the history
…8 - Autocomplete menu position issue when positioned to the right.
  • Loading branch information
scottgonzalez committed Nov 12, 2010
1 parent dfb3544 commit f85b998
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ui/jquery.ui.autocomplete.js
Expand Up @@ -334,11 +334,13 @@ $.widget( "ui.autocomplete", {
// TODO refresh should check if the active item is still in the dom, removing the need for a manual deactivate // TODO refresh should check if the active item is still in the dom, removing the need for a manual deactivate
this.menu.deactivate(); this.menu.deactivate();
this.menu.refresh(); this.menu.refresh();
this.menu.element.show().position( $.extend({
of: this.element
}, this.options.position ));


// size and position menu
ul.show();
this._resizeMenu(); this._resizeMenu();
ul.position( $.extend({
of: this.element
}, this.options.position ));
}, },


_resizeMenu: function() { _resizeMenu: function() {
Expand Down

0 comments on commit f85b998

Please sign in to comment.