summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--raphael.inline_text_editing.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/raphael.inline_text_editing.js b/raphael.inline_text_editing.js
index e0a6953..7336cd0 100644
--- a/raphael.inline_text_editing.js
+++ b/raphael.inline_text_editing.js
@@ -75,7 +75,8 @@
var originalBbox = subject._getBBox();
var width = originalBbox.width;
var height = originalBbox.height;
- var x = container.offsetLeft + originalBbox.x + translateX;
+ //var x = container.offsetLeft + originalBbox.x + translateX;
+ var x = container.offsetLeft + subject.attrs.x + translateX;
x -= $("#holder").scrollLeft();
var y = container.offsetTop + subject.attrs.y - height / 2 + translateY;
var sTransform = '';