Add check while calculating min size to prevent goofy situations
This commit is contained in:
parent
6192a1e9cc
commit
e4cba4a7c9
@ -341,15 +341,21 @@ func (this *Hierarchy) drawBackgroundPart (canvas.Canvas) {
|
||||
// if so, windows should be transparent if the color has transparency
|
||||
}
|
||||
|
||||
// var minimumSizeCount = 0
|
||||
func (this *Hierarchy) doMinimumSize () {
|
||||
this.minimumClean = true
|
||||
// println("doMinimumSize", minimumSizeCount)
|
||||
// minimumSizeCount ++
|
||||
|
||||
previousMinimumSize := this.minimumSize
|
||||
this.minimumSize = image.Point { }
|
||||
if this.root != nil {
|
||||
this.minimumSize = this.root.minimumSize()
|
||||
}
|
||||
|
||||
this.link.NotifyMinimumSizeChange()
|
||||
if previousMinimumSize != this.minimumSize {
|
||||
this.link.NotifyMinimumSizeChange()
|
||||
}
|
||||
}
|
||||
|
||||
func (this *Hierarchy) newStyleApplicator () *styleApplicator {
|
||||
|
Loading…
Reference in New Issue
Block a user