Skip to content
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
galo2099 authored and scottgonzalez committed Aug 11, 2010
1 parent 9a4eecd commit 3af1f6c1ce7aedc35d3852422c891f7a2a545a47
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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.