Permalink
Browse files

Autocomplete: changed menu activated function to check if the offset …

…is greater than or equal the height. Fixed #5923 - autocomplete: Scrolling with the keyboard sometimes does not show the item (Chrome)
  • Loading branch information...
1 parent 9a4eecd commit 3af1f6c1ce7aedc35d3852422c891f7a2a545a47 @galo2099 galo2099 committed with scottgonzalez Aug 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.autocomplete.js
@@ -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());
}
}

0 comments on commit 3af1f6c

Please sign in to comment.