fix empty grid
This commit is contained in:
parent
538d6920c8
commit
6d39f96a73
1 changed files with 5 additions and 1 deletions
|
|
@ -67,8 +67,12 @@ func LayoutNested(ctx context.Context, g *d2graph.Graph, graphInfo GraphInfo, co
|
|||
for _, e := range nestedGraph.Edges {
|
||||
e.Move(dx, dy)
|
||||
}
|
||||
|
||||
} else if !gi.isDefault() {
|
||||
// empty grid can have 0 objects..
|
||||
if gi.DiagramType == GridDiagram && !gi.IsConstantNear && len(curr.Children) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
extractedInfo[curr] = gi
|
||||
|
||||
// There is a nested diagram here, so extract its contents and process in the same way
|
||||
|
|
|
|||
Loading…
Reference in a new issue