Child property change events make more sense now
This commit is contained in:
parent
6e4310b9ad
commit
5cf0b162c0
@ -79,7 +79,8 @@ func (entity *entity) SetMinimumSize (width, height int) {
|
|||||||
if entity.parent == nil {
|
if entity.parent == nil {
|
||||||
entity.window.setMinimumSize(width, height)
|
entity.window.setMinimumSize(width, height)
|
||||||
} else {
|
} else {
|
||||||
entity.parent.element.(tomo.Container).HandleChildMinimumSizeChange()
|
entity.parent.element.(tomo.Container).
|
||||||
|
HandleChildMinimumSizeChange(entity.element)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -172,10 +173,11 @@ func (entity *entity) FocusPrevious () {
|
|||||||
|
|
||||||
// ----------- FlexibleEntity ----------- //
|
// ----------- FlexibleEntity ----------- //
|
||||||
|
|
||||||
func (entity *entity) NotifyFlexibleHeightChange (child tomo.Flexible) {
|
func (entity *entity) NotifyFlexibleHeightChange () {
|
||||||
if entity.parent == nil { return }
|
if entity.parent == nil { return }
|
||||||
if parent, ok := entity.parent.element.(tomo.FlexibleContainer); ok {
|
if parent, ok := entity.parent.element.(tomo.FlexibleContainer); ok {
|
||||||
parent.HandleChildFlexibleHeightChange()
|
parent.HandleChildFlexibleHeightChange (
|
||||||
|
entity.element.(tomo.Flexible))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||