phetsims / sun

User-interface components for PhET simulations, built on top of Scenery.
MIT License
4 stars 12 forks source link

Panel should automatically disappear when its children have all been hidden via phet-io #824

Closed samreid closed 1 year ago

samreid commented 1 year ago

In https://github.com/phetsims/circuit-construction-kit-common/issues/917, it was frustrating that panels would remain empty when all children elements were hidden via phet-io. It seems like a better development experience to hide a panel that has no visible children.

samreid commented 1 year ago

@arouinfar and @matthew-blackman agreed it would be good to hide the whole panel if all its children become invisible.

samreid commented 1 year ago

This already happens. We were confused because CCK had invisible alignboxes that prevented the panel from disappearing. Closing.