1
0
mirror of synced 2024-11-25 14:26:03 +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

@ -201,9 +201,9 @@
event.stopPropagation();
}
function measureTextWidth(e) {
var style = e.currentStyle || window.getComputedStyle(e, null);
function measureTextWidth(e) {
if (!sizer){
var style = e.currentStyle || window.getComputedStyle(e, null);
sizer = $("<div></div>").css({
position: "absolute",
left: "-1000px",