Compare commits

..

No commits in common. "e4cba4a7c9847a0bfb80242cc9c38b6caa402f42" and "5864c7469150ddd0c299176cf8e2f05172405332" have entirely different histories.

2 changed files with 1 additions and 8 deletions

View File

@ -341,21 +341,15 @@ 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()
}
if previousMinimumSize != this.minimumSize {
this.link.NotifyMinimumSizeChange()
}
this.link.NotifyMinimumSizeChange()
}
func (this *Hierarchy) newStyleApplicator () *styleApplicator {

View File

@ -83,7 +83,6 @@ func NewMemo[T any] (update func () T) Memo[T] {
func (this *Memo[T]) Value () T {
if !this.valid {
this.cache = this.update()
this.valid = true
}
return this.cache
}