2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-22 12:55:12 +00:00

set all widths with .css(), not with .width()

This commit is contained in:
Sebastian Weyrauch 2016-07-27 07:52:54 +02:00
parent d9c4dd622c
commit 2c81daeb01
3 changed files with 5 additions and 5 deletions

View File

@ -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);
}
},

File diff suppressed because one or more lines are too long

View File

@ -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);
}
},