Fixing label positioning in charset nodes

This commit is contained in:
Jeff Avallone 2014-12-09 21:00:36 -05:00
parent e26d91bae5
commit 975780609d
1 changed files with 11 additions and 3 deletions

View File

@ -37,15 +37,23 @@ export default _.extend({}, Base, {
padding: 5
});
box = this.label.getBBox();
this.label.transform(Snap.matrix()
.translate(0, box.height));
this.partContainer.transform(Snap.matrix()
.translate(5, 5 + box.height));
this.box.transform(Snap.matrix()
.translate(0, box.height));
box = this.partContainer.getBBox();
this.box.attr({
width: box.width + 10,
height: box.height + 10
});
this.partContainer.transform(Snap.matrix()
.translate(5, 5));
},
invert() {