Centralizing some of the layout code

This commit is contained in:
Jeff Avallone
2014-12-09 19:02:31 -05:00
parent 7ed865ecdb
commit cd11b7e6e5
9 changed files with 69 additions and 37 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ export default _.extend({}, Base, {
part.container.transform(Snap.matrix()
.translate(0, offset));
box = part.container.getBBox();
box = part.getBBox();
offset += box.height + 5;
}).bind(this));
@@ -46,7 +46,7 @@ export default _.extend({}, Base, {
box = this.partContainer.getBBox();
_.each(this.parts.elements, (part => {
var partBox = part.container.getBBox();
var partBox = part.getBBox();
part.container.transform(Snap.matrix()
.add(part.container.transform().localMatrix)