1
0
mirror of synced 2025-02-04 06:09:23 +03:00

give the sizer a higher offset just in case its on a highres screen

This commit is contained in:
Igor Vaynberg 2012-07-17 12:10:46 +03:00
parent 7947803df4
commit 0aea42fe42

View File

@ -206,7 +206,7 @@
var evaluated = false, var evaluated = false,
value; value;
return function() { return function() {
if (evaluated === false) { value = formula(); evaluated=true; } if (evaluated === false) { value = formula(); evaluated = true; }
return value; return value;
}; };
}; };
@ -228,8 +228,8 @@
var style = e[0].currentStyle || window.getComputedStyle(e[0], null); var style = e[0].currentStyle || window.getComputedStyle(e[0], null);
sizer = $("<div></div>").css({ sizer = $("<div></div>").css({
position: "absolute", position: "absolute",
left: "-1000px", left: "-10000px",
top: "-1000px", top: "-10000px",
display: "none", display: "none",
fontSize: style.fontSize, fontSize: style.fontSize,
fontFamily: style.fontFamily, fontFamily: style.fontFamily,