mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Autocomplete: fixed #5347 - Autocomplete: each successive item hover makes item above shrink a bit in IE
This commit is contained in:
parent
2a7fc816ee
commit
9aa56386a3
12
ui/jquery.ui.autocomplete.js
vendored
12
ui/jquery.ui.autocomplete.js
vendored
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user