robust-parenting #12

Merged
sashakoshka merged 17 commits from robust-parenting into main 2023-03-15 22:34:08 -06:00
Showing only changes of commit 2f60abdfa3 - Show all commits

View File

@ -58,7 +58,7 @@ func (core *Core) MinimumSize () (width, height int) {
// overridden, unless you want to detect when the element is parented or
// unparented.
func (core *Core) SetParent (parent elements.Parent) {
if core.parent != nil {
if parent != nil && core.parent != nil {
panic("core.SetParent: element already has a parent")
}