From a30c16a9408d8ade53a21336887a834cd15ccfb9 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 14 Dec 2014 19:29:45 -0500 Subject: [PATCH] Fixing root node positioning --- src/js/parser/javascript/root.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/parser/javascript/root.js b/src/js/parser/javascript/root.js index 33799e2..bc72969 100644 --- a/src/js/parser/javascript/root.js +++ b/src/js/parser/javascript/root.js @@ -22,9 +22,9 @@ export default _.extend({}, Base, { contentBox = this.regexp.getBBox(); this.start.transform(Snap.matrix() - .translate(0, contentBox.cy)); + .translate(0, contentBox.ay)); this.end.transform(Snap.matrix() - .translate(contentBox.x2 + 10, contentBox.cy)); + .translate(contentBox.x2 + 10, contentBox.ay)); }).bind(this)); },