From 3af1f6c1ce7aedc35d3852422c891f7a2a545a47 Mon Sep 17 00:00:00 2001 From: Robson Braga Araujo Date: Wed, 11 Aug 2010 07:23:10 +0800 Subject: [PATCH] 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) --- ui/jquery.ui.autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 4cd1b0548aa..940d41adfda 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()); } }