mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2025-01-03 14:47:25 +00:00
Don't adjust position on resize if suggestions not visible.
This commit is contained in:
parent
cc0e124567
commit
835a039ba9
@ -167,7 +167,9 @@
|
|||||||
that.fixPosition();
|
that.fixPosition();
|
||||||
|
|
||||||
that.fixPositionCapture = function () {
|
that.fixPositionCapture = function () {
|
||||||
that.fixPosition();
|
if (that.visible) {
|
||||||
|
that.fixPosition();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$(window).on('resize', that.fixPositionCapture);
|
$(window).on('resize', that.fixPositionCapture);
|
||||||
@ -225,8 +227,8 @@
|
|||||||
var that = this,
|
var that = this,
|
||||||
offset;
|
offset;
|
||||||
|
|
||||||
// Don't adjsut position if not visible or custom container has been specified:
|
// Don't adjsut position if custom container has been specified:
|
||||||
if (!that.visible || that.options.appendTo !== 'body') {
|
if (that.options.appendTo !== 'body') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user