give the sizer a higher offset just in case its on a highres screen
This commit is contained in:
parent
7947803df4
commit
0aea42fe42
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user