Child property change events make more sense now

This commit is contained in:
2023-04-15 00:02:30 -04:00
parent 6e4310b9ad
commit 5cf0b162c0
4 changed files with 20 additions and 19 deletions

View File

@@ -153,8 +153,7 @@ func (element *Label) updateMinimumSize () {
em = element.theme.Padding(tomo.PatternBackground)[0]
}
width, height = em, element.drawer.LineHeight().Round()
// FIXME we shoudl not have to pass in the element here
element.entity.NotifyFlexibleHeightChange(element)
element.entity.NotifyFlexibleHeightChange()
} else {
bounds := element.drawer.LayoutBounds()
width, height = bounds.Dx(), bounds.Dy()