diff --git a/d2layouts/d2layouts.go b/d2layouts/d2layouts.go index b9ede64ad..6b2d1fc7a 100644 --- a/d2layouts/d2layouts.go +++ b/d2layouts/d2layouts.go @@ -255,6 +255,9 @@ func InjectNested(container *d2graph.Object, nestedGraph *d2graph.Graph, isRoot if nestedGraph.Root.LabelPosition != nil { container.LabelPosition = nestedGraph.Root.LabelPosition } + if nestedGraph.Root.IconPosition != nil { + container.IconPosition = nestedGraph.Root.IconPosition + } container.Attributes = nestedGraph.Root.Attributes } }