Attempt to fix strange issue with overflowing
This commit is contained in:
parent
76701d4383
commit
727a801243
@ -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) +
|
||||
|
Loading…
Reference in New Issue
Block a user