Skip to content

Commit 2c81dae

Browse files
committed
set all widths with .css(), not with .width()
1 parent d9c4dd6 commit 2c81dae

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/jquery.autocomplete.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176

177177
// Only set width if it was provided:
178178
if (options.width !== 'auto') {
179-
container.width(options.width);
179+
container.css('width', options.width);
180180
}
181181

182182
// Listen for mouse over event on suggestions list:
@@ -736,7 +736,7 @@
736736
// -2px to account for suggestions border.
737737
if (options.width === 'auto') {
738738
width = that.el.outerWidth();
739-
container.width(width > 0 ? width : 300);
739+
container.css('width', width > 0 ? width : 300);
740740
}
741741
},
742742

0 commit comments

Comments
 (0)