diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-11-12 08:41:36 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-11-12 08:41:36 -0500 |
commit | f85b998f44e68860c633e467fe6427e52f91282c (patch) | |
tree | 79c44c6ac7657db12f89b722a35c92367d7dd229 | |
parent | dfb35442975a95c91f6c28188fad021714d7098b (diff) | |
download | jquery-ui-f85b998f44e68860c633e467fe6427e52f91282c.tar.gz jquery-ui-f85b998f44e68860c633e467fe6427e52f91282c.zip |
Autocomplete: Re-position menu after resizing, not before. Fixes #6648 - Autocomplete menu position issue when positioned to the right.
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 1e07b3c16..80132e2d1 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -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 this.menu.deactivate(); this.menu.refresh(); - this.menu.element.show().position( $.extend({ - of: this.element - }, this.options.position )); + // size and position menu + ul.show(); this._resizeMenu(); + ul.position( $.extend({ + of: this.element + }, this.options.position )); }, _resizeMenu: function() { |