Fixed Container not clearing child event handlers in DisownAll
This commit is contained in:
parent
9c12cd7e18
commit
531b0ffce9
@ -160,6 +160,9 @@ func (element *Container) clearChildEventHandlers (child elements.Element) {
|
|||||||
|
|
||||||
// DisownAll removes all child elements from the container at once.
|
// DisownAll removes all child elements from the container at once.
|
||||||
func (element *Container) DisownAll () {
|
func (element *Container) DisownAll () {
|
||||||
|
for _, entry := range element.children {
|
||||||
|
element.clearChildEventHandlers(entry.Element)
|
||||||
|
}
|
||||||
element.children = nil
|
element.children = nil
|
||||||
|
|
||||||
element.updateMinimumSize()
|
element.updateMinimumSize()
|
||||||
|
Reference in New Issue
Block a user