realign dropdown when search box moves to new line. closes #43
This commit is contained in:
parent
293bd830b2
commit
095cdda05e
@ -1237,7 +1237,6 @@
|
|||||||
this.addSelectedChoice(data);
|
this.addSelectedChoice(data);
|
||||||
if (this.select) { this.postprocessResults(); }
|
if (this.select) { this.postprocessResults(); }
|
||||||
|
|
||||||
|
|
||||||
if (this.opts.closeOnSelect) {
|
if (this.opts.closeOnSelect) {
|
||||||
this.close();
|
this.close();
|
||||||
this.search.width(10);
|
this.search.width(10);
|
||||||
@ -1356,6 +1355,9 @@
|
|||||||
searchWidth = maxWidth - getSideBorderPadding(this.search);
|
searchWidth = maxWidth - getSideBorderPadding(this.search);
|
||||||
}
|
}
|
||||||
this.search.width(searchWidth);
|
this.search.width(searchWidth);
|
||||||
|
|
||||||
|
// in case the search box was pushed to the next line realign the dropdown
|
||||||
|
if (this.opened()) { this.alignDropdown(); }
|
||||||
},
|
},
|
||||||
|
|
||||||
getVal: function () {
|
getVal: function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user