summaryrefslogtreecommitdiffstats
path: root/src/boxes.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-09-03 15:57:39 +0200
committerwout <wout@impinc.co.uk>2014-09-03 15:57:39 +0200
commit89f3a26e94e716fc8ed14a44a273013ff7ef1cea (patch)
tree4f91420b8914b0f0a94004cefd88e0acc8877b0a /src/boxes.js
parent2649e3153e82f840365ce26564be96e0385199ce (diff)
downloadsvg.js-89f3a26e94e716fc8ed14a44a273013ff7ef1cea.tar.gz
svg.js-89f3a26e94e716fc8ed14a44a273013ff7ef1cea.zip
Fix in RBox
Diffstat (limited to 'src/boxes.js')
-rwxr-xr-xsrc/boxes.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/boxes.js b/src/boxes.js
index 6451be8..9d214e3 100755
--- a/src/boxes.js
+++ b/src/boxes.js
@@ -58,9 +58,8 @@ SVG.TBox = SVG.invent({
this.height = box.height * t.scaleY
// x and y including transformations
- box = element.rbox()
- this.x = box.x
- this.y = box.y
+ this.x = box.x + t.x
+ this.y = box.y + t.y
}
// add center, right and bottom