Attempt to fix strange issue with overflowing

This commit is contained in:
Sasha Koshka 2024-06-14 02:30:59 -04:00
parent 76701d4383
commit 727a801243

View File

@ -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) +