From 727a80124302926ac214ca4d82cd3144e1081e04 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 14 Jun 2024 02:30:59 -0400 Subject: [PATCH] Attempt to fix strange issue with overflowing --- internal/system/containerbox.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/system/containerbox.go b/internal/system/containerbox.go index 51c4eb1..56d410a 100644 --- a/internal/system/containerbox.go +++ b/internal/system/containerbox.go @@ -74,7 +74,7 @@ func (this *containerBox) ScrollTo (point image.Point) { } func (this *containerBox) RecommendedHeight (width int) int { - if this.layout == nil { + if this.layout == nil || this.vOverflow { return this.MinimumSize().Y } else { return this.layout.RecommendedHeight(this.layoutHints(), this.children, width) + @@ -83,7 +83,7 @@ func (this *containerBox) RecommendedHeight (width int) int { } func (this *containerBox) RecommendedWidth (height int) int { - if this.layout == nil { + if this.layout == nil || this.hOverflow { return this.MinimumSize().X } else { return this.layout.RecommendedWidth(this.layoutHints(), this.children, height) +