Hi
Duplicated what you had.
Works perfectly, so it is not that coding, something else must be doing it.
Can you try 2 things.
-
break the open level, does the widget get removed from screen, just with remove from parent?
-
try it this way around, should not make a difference, but can not hurt