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) {
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user