diff --git a/ui/spacing.go b/ui/spacing.go index 6e4961c..f3c2c98 100644 --- a/ui/spacing.go +++ b/ui/spacing.go @@ -81,7 +81,7 @@ func (s *Spacing) Center() { } func (s *Spacing) DesiredSize(ctx Context, size geom.PointF32) geom.PointF32 { - var content = s.Proxy.DesiredSize(ctx, size) + var content = s.Proxy.DesiredSize(ctx, geom.PtF32(s.Width.Zero(size.X), s.Height.Zero(size.Y))) var w, h = s.Width.Zero(content.X), s.Height.Zero(content.Y) var margin = func(l *Length) float32 { var v = l.Value()