diff --git a/d2layouts/d2grid/layout.go b/d2layouts/d2grid/layout.go index 853a691e7..e85811f10 100644 --- a/d2layouts/d2grid/layout.go +++ b/d2layouts/d2grid/layout.go @@ -201,7 +201,6 @@ func Layout2(ctx context.Context, g *d2graph.Graph) error { obj.TopLeft.X+float64(horizontalPadding), obj.TopLeft.Y+float64(verticalPadding), ) - gd.cleanup(obj, g) return nil } diff --git a/d2layouts/d2layouts.go b/d2layouts/d2layouts.go index 8ef99f12e..be9f281f7 100644 --- a/d2layouts/d2layouts.go +++ b/d2layouts/d2layouts.go @@ -72,8 +72,6 @@ func LayoutNested(ctx context.Context, g *d2graph.Graph, graphInfo GraphInfo, co if gi.IsConstantNear { nearGraph = ExtractSelf(child) child.TopLeft = geo.NewPoint(0, 0) - child.Width = nestedGraph.Root.Width - child.Width = nestedGraph.Root.Height } // if gi.IsConstantNear { @@ -282,7 +280,7 @@ func InjectNested(container *d2graph.Object, nestedGraph *d2graph.Graph) { } func PositionNested(container *d2graph.Object, nestedGraph *d2graph.Graph) { - // _, _ := boundingBox(nestedGraph) + // tl, _ := boundingBox(nestedGraph) // Note: assumes nestedGraph's layout has contents positioned relative to 0,0 dx := container.TopLeft.X //- tl.X dy := container.TopLeft.Y //- tl.Y