From 5859dc8149446e74796699f4b7befd3f71713fe7 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Sat, 14 Jul 2012 00:34:33 +0300 Subject: [PATCH] possible fix for #205 --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 47bda057..855b8d40 100755 --- a/select2.js +++ b/select2.js @@ -1598,7 +1598,7 @@ if (placeholder !== undefined && this.getVal().length === 0 && this.search.hasClass("select2-focused") === false) { this.search.val(placeholder).addClass("select2-default"); // stretch the search box to full width of the container so as much of the placeholder is visible as possible - this.search.width("auto"); + this.resizeSearch(); } else { // we set this to " " instead of "" and later clear it on focus() because there is a firefox bug // that does not properly render the caret when the field starts out blank