summaryrefslogtreecommitdiffstats
path: root/src/group.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-03-23 22:50:30 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-03-23 22:50:30 +0100
commit8205de6087bd6fe48706f598c49a111f52740c97 (patch)
tree965fd228f650007bd6ded8835885d89b2e19554b /src/group.js
parent2b26d66fc4686c249ef27b2b8ca1bb20df7bb95d (diff)
downloadsvg.js-8205de6087bd6fe48706f598c49a111f52740c97.tar.gz
svg.js-8205de6087bd6fe48706f598c49a111f52740c97.zip
Implementation new fx module
Diffstat (limited to 'src/group.js')
-rw-r--r--src/group.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group.js b/src/group.js
index 05d144c..9ec89f2 100644
--- a/src/group.js
+++ b/src/group.js
@@ -17,11 +17,11 @@ SVG.G = SVG.invent({
}
// Move by center over x-axis
, cx: function(x) {
- return x == null ? this.tbox().cx : this.x(x - this.tbox().width / 2)
+ return x == null ? this.gbox().cx : this.x(x - this.gbox().width / 2)
}
// Move by center over y-axis
, cy: function(y) {
- return y == null ? this.tbox().cy : this.y(y - this.tbox().height / 2)
+ return y == null ? this.gbox().cy : this.y(y - this.gbox().height / 2)
}
, gbox: function() {