Index: trunk/phase3/resources/jquery.ui/jquery.ui.autocomplete.js |
— | — | @@ -1,5 +1,5 @@ |
2 | 2 | /* |
3 | | - * jQuery UI Autocomplete 1.8.11 |
| 3 | + * jQuery UI Autocomplete 1.8.14 |
4 | 4 | * |
5 | 5 | * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) |
6 | 6 | * Dual licensed under the MIT or GPL Version 2 licenses. |
— | — | @@ -490,12 +490,12 @@ |
491 | 491 | this.deactivate(); |
492 | 492 | if (this.hasScroll()) { |
493 | 493 | var offset = item.offset().top - this.element.offset().top, |
494 | | - scroll = this.element.attr("scrollTop"), |
| 494 | + scroll = this.element.scrollTop(), |
495 | 495 | elementHeight = this.element.height(); |
496 | 496 | if (offset < 0) { |
497 | | - this.element.attr("scrollTop", scroll + offset); |
| 497 | + this.element.scrollTop( scroll + offset); |
498 | 498 | } else if (offset >= elementHeight) { |
499 | | - this.element.attr("scrollTop", scroll + offset - elementHeight + item.height()); |
| 499 | + this.element.scrollTop( scroll + offset - elementHeight + item.height()); |
500 | 500 | } |
501 | 501 | } |
502 | 502 | this.active = item.eq(0) |
— | — | @@ -601,7 +601,7 @@ |
602 | 602 | }, |
603 | 603 | |
604 | 604 | hasScroll: function() { |
605 | | - return this.element.height() < this.element.attr("scrollHeight"); |
| 605 | + return this.element.height() < this.element[ $.fn.prop ? "prop" : "attr" ]("scrollHeight"); |
606 | 606 | }, |
607 | 607 | |
608 | 608 | select: function( event ) { |