aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.autocomplete.js
diff options
context:
space:
mode:
authorRobson Braga Araujo <robsonbraga@gmail.com>2010-08-11 07:23:10 +0800
committerScott González <scott.gonzalez@gmail.com>2010-08-11 08:21:09 +0800
commit3af1f6c1ce7aedc35d3852422c891f7a2a545a47 (patch)
treee2cb9f4eda42382aec4551b9aca669dbcdabaaf6 /ui/jquery.ui.autocomplete.js
parent9a4eecdf85bf0a3accd7acb9fead64d6b5aad18e (diff)
downloadjquery-ui-3af1f6c1ce7aedc35d3852422c891f7a2a545a47.tar.gz
jquery-ui-3af1f6c1ce7aedc35d3852422c891f7a2a545a47.zip
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)
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r--ui/jquery.ui.autocomplete.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index 4cd1b0548..940d41adf 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/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());
}
}