mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 22:27:39 +00:00
set all widths with .css(), not with .width()
This commit is contained in:
parent
d9c4dd622c
commit
2c81daeb01
4
dist/jquery.autocomplete.js
vendored
4
dist/jquery.autocomplete.js
vendored
@ -176,7 +176,7 @@
|
||||
|
||||
// Only set width if it was provided:
|
||||
if (options.width !== 'auto') {
|
||||
container.width(options.width);
|
||||
container.css('width', options.width);
|
||||
}
|
||||
|
||||
// Listen for mouse over event on suggestions list:
|
||||
@ -736,7 +736,7 @@
|
||||
// -2px to account for suggestions border.
|
||||
if (options.width === 'auto') {
|
||||
width = that.el.outerWidth();
|
||||
container.width(width > 0 ? width : 300);
|
||||
container.css('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
@ -176,7 +176,7 @@
|
||||
|
||||
// Only set width if it was provided:
|
||||
if (options.width !== 'auto') {
|
||||
container.width(options.width);
|
||||
container.css('width', options.width);
|
||||
}
|
||||
|
||||
// Listen for mouse over event on suggestions list:
|
||||
@ -735,7 +735,7 @@
|
||||
// Also it adjusts if input width has changed.
|
||||
if (options.width === 'auto') {
|
||||
width = that.el.outerWidth();
|
||||
container.width(width > 0 ? width : 300);
|
||||
container.css('width', width > 0 ? width : 300);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user