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.
2 parents f85a6e9 + 221dbaf commit ece3c23Copy full SHA for ece3c23
src/selectize.js
@@ -1936,9 +1936,13 @@ $.extend(Selectize.prototype, {
1936
var $control = this.$control;
1937
var offset = this.settings.dropdownParent === 'body' ? $control.offset() : $control.position();
1938
offset.top += $control.outerHeight(true);
1939
-
+ var w = $control[0].getBoundingClientRect().width;
1940
+ if (this.settings.minWidth && this.settings.minWidth > w)
1941
+ {
1942
+ w = this.settings.minWidth;
1943
+ }
1944
this.$dropdown.css({
- width : $control[0].getBoundingClientRect().width,
1945
+ width : w,
1946
top : offset.top,
1947
left : offset.left
1948
});
0 commit comments