Revert "Simplifying positioning code for root nodes"
This reverts commit 46ab0662f5
.
This commit is contained in:
parent
c2d8473425
commit
40ac83ab91
@ -13,9 +13,19 @@ export default _.extend({}, Base, {
|
||||
.attr({ r: 5 });
|
||||
|
||||
return this.regexp.render(this.container.group())
|
||||
.then(this.spaceHorizontally.bind(this, [this.start, this.regexp, this.end], {
|
||||
padding: 10
|
||||
}));
|
||||
.then((() => {
|
||||
var contentBox;
|
||||
|
||||
this.regexp.transform(Snap.matrix()
|
||||
.translate(10, 0));
|
||||
|
||||
contentBox = this.regexp.getBBox();
|
||||
|
||||
this.start.transform(Snap.matrix()
|
||||
.translate(0, contentBox.cy));
|
||||
this.end.transform(Snap.matrix()
|
||||
.translate(contentBox.x2 + 10, contentBox.cy));
|
||||
}).bind(this));
|
||||
},
|
||||
|
||||
flags() {
|
||||
|
Loading…
Reference in New Issue
Block a user