1
0
mirror of synced 2024-11-26 06:46:04 +03:00

no need for style if we already have a sizer

Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
This commit is contained in:
creage 2012-06-16 22:23:12 +03:00 committed by Igor Vaynberg
parent 65eb7c3404
commit 492dccd1a5

View File

@ -202,8 +202,8 @@
} }
function measureTextWidth(e) { function measureTextWidth(e) {
var style = e.currentStyle || window.getComputedStyle(e, null);
if (!sizer){ if (!sizer){
var style = e.currentStyle || window.getComputedStyle(e, null);
sizer = $("<div></div>").css({ sizer = $("<div></div>").css({
position: "absolute", position: "absolute",
left: "-1000px", left: "-1000px",