We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10ddd8a commit b8d0a58Copy full SHA for b8d0a58
src/jquery.multiselect.filter.js
@@ -93,7 +93,10 @@
93
placeholder: opts.placeholder,
94
type: "search"
95
})
96
- .css({ width: (/\d/.test(opts.width) ? opts.width + 'px' : null) });
+ .css({ width: (typeof opts.width === 'string')
97
+ ? this.instance._parse2px(opts.width, this.$header).px + 'px'
98
+ : (/\d/.test(opts.width) ? opts.width + 'px' : null)
99
+ });
100
this._bindInputEvents();
101
// automatically reset the widget on close?
102
if (this.options.autoReset) {
0 commit comments