]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Re-position menu after resizing, not before. Fixes #6648 - Autocomplete...
authorScott González <scott.gonzalez@gmail.com>
Fri, 12 Nov 2010 13:41:36 +0000 (08:41 -0500)
committerScott González <scott.gonzalez@gmail.com>
Fri, 12 Nov 2010 13:41:36 +0000 (08:41 -0500)
ui/jquery.ui.autocomplete.js

index 1e07b3c16184f5a2da529f9b1be4960b853c0291..80132e2d1e70179a8b055b64a28de642a45405e5 100644 (file)
@@ -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() {