Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gavin-ts committed Dec 13, 2023
1 parent 55d43f4 commit 7a5705e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d2layouts/d2elklayout/layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func Layout(ctx context.Context, g *d2graph.Graph, opts *ConfigurableOpts) (err
obj.Height += float64(obj.LabelDimensions.Height + label.PADDING)
}

margin, _ := obj.SpacingOpt(2*label.PADDING, 0, false)
margin, _ := obj.SpacingOpt(label.PADDING, label.PADDING, false)
width := margin.Left + obj.Width + margin.Right
height := margin.Top + obj.Height + margin.Bottom
adjustments[obj] = margin
Expand Down

0 comments on commit 7a5705e

Please sign in to comment.