We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d71867a commit 9fbadc1Copy full SHA for 9fbadc1
src/jquery.autocomplete.js
@@ -851,16 +851,17 @@
851
852
adjustScroll: function (index) {
853
var that = this,
854
- activeItem = that.activate(index),
855
- offsetTop,
856
- upperBound,
857
- lowerBound,
858
- heightDelta = 25;
+ activeItem = that.activate(index)
859
860
if (!activeItem) {
861
return;
862
}
863
+ var offsetTop,
+ upperBound,
+ lowerBound,
+ heightDelta = $(activeItem).outerHeight();
864
+
865
offsetTop = activeItem.offsetTop;
866
upperBound = $(that.suggestionsContainer).scrollTop();
867
lowerBound = upperBound + that.options.maxHeight - heightDelta;
0 commit comments