Skip to content

Commit

Permalink
Autocomplete: changed menu activated function to check if the offset …
Browse files Browse the repository at this point in the history
…is greater than or equal the height. Fixed #5923 - autocomplete: Scrolling with the keyboard sometimes does not show the item (Chrome)
  • Loading branch information
galo2099 authored and scottgonzalez committed Aug 11, 2010
1 parent 9a4eecd commit 3af1f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.autocomplete.js
Expand Up @@ -429,7 +429,7 @@ $.widget("ui.menu", {
elementHeight = this.element.height();
if (offset < 0) {
this.element.attr("scrollTop", scroll + offset);
} else if (offset > elementHeight) {
} else if (offset >= elementHeight) {
this.element.attr("scrollTop", scroll + offset - elementHeight + item.height());
}
}
Expand Down

0 comments on commit 3af1f6c

Please sign in to comment.