comments
This commit is contained in:
parent
2e5612697f
commit
0877c349ad
1 changed files with 2 additions and 0 deletions
|
|
@ -394,6 +394,8 @@ func Layout(ctx context.Context, g *d2graph.Graph, opts *ConfigurableOpts) (err
|
||||||
q = q[1:]
|
q = q[1:]
|
||||||
|
|
||||||
stepSize := subtract
|
stepSize := subtract
|
||||||
|
// The object itself needs to move down the height it was just subtracted
|
||||||
|
// all descendents move half, to maintain vertical padding
|
||||||
if curr != obj {
|
if curr != obj {
|
||||||
stepSize /= 2.
|
stepSize /= 2.
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue