Skip to content

Commit 9497693

Browse files
creageivaynberg
authored andcommitted
style detection for search field sizer corrected
Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
1 parent 492dccd commit 9497693

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203

204204
function measureTextWidth(e) {
205205
if (!sizer){
206-
var style = e.currentStyle || window.getComputedStyle(e, null);
206+
var style = e[0].currentStyle || window.getComputedStyle(e[0], null);
207207
sizer = $("<div></div>").css({
208208
position: "absolute",
209209
left: "-1000px",

0 commit comments

Comments
 (0)