Change when the parent is notified of a child's minimum size change
This commit is contained in:
parent
fbb6d61cfc
commit
bb082d3989
@ -484,9 +484,6 @@ func (this *box) calculateMinimumSize () image.Point {
|
|||||||
minSize.Y = userMinSize.Y
|
minSize.Y = userMinSize.Y
|
||||||
}
|
}
|
||||||
|
|
||||||
if this.parent != nil {
|
|
||||||
this.parent.notifyMinimumSizeChange(this)
|
|
||||||
}
|
|
||||||
return minSize
|
return minSize
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -564,6 +561,9 @@ func (this *box) invalidateDraw () {
|
|||||||
|
|
||||||
func (this *box) invalidateMinimum () {
|
func (this *box) invalidateMinimum () {
|
||||||
this.minSize.Invalidate()
|
this.minSize.Invalidate()
|
||||||
|
if this.parent != nil {
|
||||||
|
this.parent.notifyMinimumSizeChange(this)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *box) recursiveReApply () {
|
func (this *box) recursiveReApply () {
|
||||||
|
Loading…
Reference in New Issue
Block a user