diff --git a/ui/stackpanel.go b/ui/stackpanel.go index 7c00cda..f734c1e 100644 --- a/ui/stackpanel.go +++ b/ui/stackpanel.go @@ -31,8 +31,6 @@ func (p *StackPanel) Arrange(ctx Context, bounds geom.RectangleF32, offset geom. } else { height = remainder / float32(stretch) } - } else if childOffset+height > bounds.Dy() { - height = bounds.Dy() - childOffset } var child = geom.RectF32(bounds.Min.X, bounds.Min.Y+childOffset, bounds.Max.X, bounds.Min.Y+childOffset+height) p.Children[i].Arrange(ctx, p.Orientation.FlipRect(child), offset)