summaryrefslogtreecommitdiffstats
path: root/src/container.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-21 18:20:42 +0100
committerwout <wout@impinc.co.uk>2012-12-21 18:20:42 +0100
commit34a2a1ad00c96f3ef222a08ff5516b2067f7af87 (patch)
tree89d878e832c793e53bc954cb0f4a097b0a0c9678 /src/container.js
parentb56c077bf6b478e5290c1286d82ec64c6d606b8d (diff)
downloadsvg.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.js3
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);