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:
parent
3b4d260c17
commit
d9c4dd622c
2
dist/jquery.autocomplete.js
vendored
2
dist/jquery.autocomplete.js
vendored
@ -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);
|
||||
}
|
||||
},
|
||||
|
2
dist/jquery.autocomplete.min.js
vendored
2
dist/jquery.autocomplete.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user