From 9497693b64cd45963a9316464dd9f194b60cb556 Mon Sep 17 00:00:00 2001 From: creage Date: Sat, 16 Jun 2012 23:30:22 +0300 Subject: [PATCH] style detection for search field sizer corrected Signed-off-by: Igor Vaynberg --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index a8dc3d10..fb902c74 100755 --- a/select2.js +++ b/select2.js @@ -203,7 +203,7 @@ function measureTextWidth(e) { if (!sizer){ - var style = e.currentStyle || window.getComputedStyle(e, null); + var style = e[0].currentStyle || window.getComputedStyle(e[0], null); sizer = $("
").css({ position: "absolute", left: "-1000px",