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

also changed the width calculation in adjustContainerWidth

This commit is contained in:
Sebastian Weyrauch 2016-07-27 07:38:07 +02:00
parent 3b4d260c17
commit d9c4dd622c
3 changed files with 3 additions and 4 deletions

View File

@ -735,7 +735,7 @@
// Also it adjusts if input width has changed.
// -2px to account for suggestions border.
if (options.width === 'auto') {
width = that.el.outerWidth() - 2;
width = that.el.outerWidth();
container.width(width > 0 ? width : 300);
}
},

File diff suppressed because one or more lines are too long

View File

@ -733,9 +733,8 @@
// If width is auto, adjust width before displaying suggestions,
// because if instance was created before input had width, it will be zero.
// Also it adjusts if input width has changed.
// -2px to account for suggestions border.
if (options.width === 'auto') {
width = that.el.outerWidth() - 2;
width = that.el.outerWidth();
container.width(width > 0 ? width : 300);
}
},