From b96079fef61e4a9db34a24b04c450ef85d107cac Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Thu, 26 Apr 2012 19:29:28 -0700 Subject: [PATCH] Revert "realign dropdown when search box moves to new line. closes #43" This reverts commit 095cdda05e8f53b9b77abc1956fad588e2afd3e8. --- select2.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/select2.js b/select2.js index 8fb9782f..bafb8da3 100755 --- a/select2.js +++ b/select2.js @@ -1237,6 +1237,7 @@ this.addSelectedChoice(data); if (this.select) { this.postprocessResults(); } + if (this.opts.closeOnSelect) { this.close(); this.search.width(10); @@ -1355,9 +1356,6 @@ 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 () {