From f37f07006cbc14613fa540bfdf14f4d7f49d6e13 Mon Sep 17 00:00:00 2001 From: Jason Hinch Date: Wed, 24 Apr 2013 15:04:38 +1000 Subject: [PATCH] Floor the searchWidth calculation due to inconsistencies between fractional pixel handling in different browsers --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 13200350..80c43a9d 100644 --- a/select2.js +++ b/select2.js @@ -2618,7 +2618,7 @@ the specific language governing permissions and limitations under the Apache Lic searchWidth = minimumWidth; } - this.search.width(searchWidth); + this.search.width(Math.floor(searchWidth)); }, // multi