no need for style if we already have a sizer
Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
This commit is contained in:
parent
65eb7c3404
commit
492dccd1a5
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user