diff options
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 2 |
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()); } } |