2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-09 23:01:00 +00:00

Don't adjust position on resize if suggestions not visible.

This commit is contained in:
Tomas Kirda 2013-06-04 18:17:42 -05:00
parent cc0e124567
commit 835a039ba9

View File

@ -167,7 +167,9 @@
that.fixPosition();
that.fixPositionCapture = function () {
that.fixPosition();
if (that.visible) {
that.fixPosition();
}
};
$(window).on('resize', that.fixPositionCapture);
@ -225,8 +227,8 @@
var that = this,
offset;
// Don't adjsut position if not visible or custom container has been specified:
if (!that.visible || that.options.appendTo !== 'body') {
// Don't adjsut position if custom container has been specified:
if (that.options.appendTo !== 'body') {
return;
}