make-containers-better #10

Merged
sashakoshka merged 20 commits from make-containers-better into main 2023-03-04 14:26:34 -07:00
Showing only changes of commit 531b0ffce9 - Show all commits

View File

@ -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()