1
0
mirror of synced 2025-03-10 22:56:12 +03:00

realign dropdown when search box moves to new line. closes #43

This commit is contained in:
Igor Vaynberg 2012-04-26 19:17:34 -07:00
parent 293bd830b2
commit 095cdda05e

View File

@ -1237,7 +1237,6 @@
this.addSelectedChoice(data);
if (this.select) { this.postprocessResults(); }
if (this.opts.closeOnSelect) {
this.close();
this.search.width(10);
@ -1356,6 +1355,9 @@
searchWidth = maxWidth - getSideBorderPadding(this.search);
}
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 () {