diff options
author | wout <wout@impinc.co.uk> | 2012-12-21 18:20:42 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-21 18:20:42 +0100 |
commit | 34a2a1ad00c96f3ef222a08ff5516b2067f7af87 (patch) | |
tree | 89d878e832c793e53bc954cb0f4a097b0a0c9678 /src/container.js | |
parent | b56c077bf6b478e5290c1286d82ec64c6d606b8d (diff) | |
download | svg.js-34a2a1ad00c96f3ef222a08ff5516b2067f7af87.tar.gz svg.js-34a2a1ad00c96f3ef222a08ff5516b2067f7af87.zip |
'bbox()' bow also returning cx and cy0.1
Diffstat (limited to 'src/container.js')
-rw-r--r-- | src/container.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/container.js b/src/container.js index 868b477..9107fbd 100644 --- a/src/container.js +++ b/src/container.js @@ -107,8 +107,7 @@ SVG.Container = { place: function(e, v) { if (v != null) { - if (v.x != null && v.y != null) - e.move(v.x, v.y); + e.move(v.x || 0, v.y || 0); if (v.width != null && v.height != null) e.size(v.width, v.height); |