interface.js
interface.js copied to clipboard
Menu not behaving with various methods
It seems that the Menu interface component does not behave correctly when operating on a parent Panel. Consider a Panel p
who has a child Menu m
. Calling p.clear()
removes m
from p
's children, however m
stays visible and can still be interacted with. In a similar way, calling p.redoBoundaries()
after resizing p
's container, it does not redraw m
and it stays at the location where it was when it was first instantiated. I have not experimented with this much more to see what other Panel methods aren't updating the Menu, but I believe p.remove()
has the same effect (or lack thereof).