From bd75f46e17ab30fd56db786d1702979d6843c95a Mon Sep 17 00:00:00 2001 From: Dmitry Baranovskiy Date: Wed, 11 Feb 2009 16:35:09 +1100 Subject: [PATCH] Removed garbage --- raphael.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raphael.js b/raphael.js index d762387..abf0e18 100644 --- a/raphael.js +++ b/raphael.js @@ -1440,7 +1440,7 @@ function Raphael() { o.appendChild(stroke); } if (res.type == "text") { - var span = document.createElement("span");//, + var span = document.createElement("span"), s = span.style; s.font = res.attrs.font; res.node.parentNode.appendChild(span); @@ -1448,7 +1448,7 @@ function Raphael() { res.W = res.attrs.w = span.offsetWidth; res.H = res.attrs.h = span.offsetHeight; res.X = res.attrs.x - Math.round(res.W / 2); - res.Y = res.attrs.y - res.H / 2; + res.Y = res.attrs.y - Math.round(res.H / 2); res.node.parentNode.removeChild(span); } }; -- 2.39.2