From bb082d3989d8e35a32a6596fe58eafd8cfad1d63 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 25 Jul 2024 21:04:32 -0400 Subject: [PATCH] Change when the parent is notified of a child's minimum size change --- internal/system/box.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/system/box.go b/internal/system/box.go index 1b73b8d..8ca727e 100644 --- a/internal/system/box.go +++ b/internal/system/box.go @@ -484,9 +484,6 @@ func (this *box) calculateMinimumSize () image.Point { minSize.Y = userMinSize.Y } - if this.parent != nil { - this.parent.notifyMinimumSizeChange(this) - } return minSize } @@ -564,6 +561,9 @@ func (this *box) invalidateDraw () { func (this *box) invalidateMinimum () { this.minSize.Invalidate() + if this.parent != nil { + this.parent.notifyMinimumSizeChange(this) + } } func (this *box) recursiveReApply () {