1
0
mirror of synced 2024-11-22 13:06:08 +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) {
var style = e.currentStyle || window.getComputedStyle(e, null);
if (!sizer){
var style = e.currentStyle || window.getComputedStyle(e, null);
sizer = $("<div></div>").css({
position: "absolute",
left: "-1000px",