charlieroberts / interface.js

gui library for music / arts applications that works with touch, mouse and motion events
213 stars 45 forks source link

Menu not behaving with various methods #27

Open ccritter opened 5 years ago

ccritter commented 5 years ago

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).