diff options
author | Richard Worth <rdworth@gmail.com> | 2010-03-15 20:40:20 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2010-03-15 20:40:20 +0000 |
commit | 9aa56386a355e1de92dcdd7ce1a644b76df9b301 (patch) | |
tree | 3b19c642a1e0c643d7d3b9fa88bc5f1a949c5c06 /ui | |
parent | 2a7fc816eefa9a93e3a3302e444539ea971b50d3 (diff) | |
download | jquery-ui-9aa56386a355e1de92dcdd7ce1a644b76df9b301.tar.gz jquery-ui-9aa56386a355e1de92dcdd7ce1a644b76df9b301.zip |
Autocomplete: fixed #5347 - Autocomplete: each successive item hover makes item above shrink a bit in IE
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index a6e50f3c3..ece6df4d5 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -352,12 +352,6 @@ $.widget("ui.menu", { activate: function(item) { this.deactivate(); - this.active = item.eq(0) - .children("a") - .addClass("ui-state-hover") - .attr("id", "ui-active-menuitem") - .end(); - this._trigger("focus", null, { item: item }); if (this.hasScroll()) { var offset = item.offset().top - this.element.offset().top, scroll = this.element.attr("scrollTop"), @@ -368,6 +362,12 @@ $.widget("ui.menu", { this.element.attr("scrollTop", scroll + offset - elementHeight + item.height()); } } + this.active = item.eq(0) + .children("a") + .addClass("ui-state-hover") + .attr("id", "ui-active-menuitem") + .end(); + this._trigger("focus", null, { item: item }); }, deactivate: function() { |