Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Autocomplete: Re-position menu after resizing, not before. Fixes #664…

…8 - Autocomplete menu position issue when positioned to the right.
  • Loading branch information...
commit f85b998f44e68860c633e467fe6427e52f91282c 1 parent dfb3544
@scottgonzalez scottgonzalez authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 ui/jquery.ui.autocomplete.js
View
8 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() {
Please sign in to comment.
Something went wrong with that request. Please try again.