diff --git a/internal/system/containerbox.go b/internal/system/containerbox.go index 304192c..1657366 100644 --- a/internal/system/containerbox.go +++ b/internal/system/containerbox.go @@ -187,7 +187,7 @@ func (this *containerBox) setAttr (attr tomo.Attr, user bool) { func (this *containerBox) recommendedHeight (width int) int { layout := this.attrLayout.Value().Layout - if layout == nil || this.attrOverflow.Value().Y { + if layout == nil || !this.attrOverflow.Value().Y { return this.minSize.Value().Y } else { return layout.RecommendedHeight(this.layoutHints(), this.boxQuerier(), width) + @@ -197,7 +197,7 @@ func (this *containerBox) recommendedHeight (width int) int { func (this *containerBox) recommendedWidth (height int) int { layout := this.attrLayout.Value().Layout - if layout == nil || this.attrOverflow.Value().X { + if layout == nil || !this.attrOverflow.Value().X { return this.minSize.Value().X } else { return layout.RecommendedWidth(this.layoutHints(), this.boxQuerier(), height) +