]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: changed menu activated function to check if the offset is greater than...
authorRobson Braga Araujo <robsonbraga@gmail.com>
Tue, 10 Aug 2010 23:23:10 +0000 (07:23 +0800)
committerScott González <scott.gonzalez@gmail.com>
Wed, 11 Aug 2010 00:21:09 +0000 (08:21 +0800)
ui/jquery.ui.autocomplete.js

index 4cd1b0548aaeb2389712c89b9f8d42d7171a3b27..940d41adfdab16f7157f99193963d1bf3c8de4ca 100644 (file)
@@ -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());
                        }
                }