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 cc0e124 commit 835a039Copy full SHA for 835a039
src/jquery.autocomplete.js
@@ -167,7 +167,9 @@
167
that.fixPosition();
168
169
that.fixPositionCapture = function () {
170
- that.fixPosition();
+ if (that.visible) {
171
+ that.fixPosition();
172
+ }
173
};
174
175
$(window).on('resize', that.fixPositionCapture);
@@ -225,8 +227,8 @@
225
227
var that = this,
226
228
offset;
229
- // Don't adjsut position if not visible or custom container has been specified:
- if (!that.visible || that.options.appendTo !== 'body') {
230
+ // Don't adjsut position if custom container has been specified:
231
+ if (that.options.appendTo !== 'body') {
232
return;
233
}
234
0 commit comments