phetsims / sun

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

Carousel should relayout contents and repaginate when items are removed/restored #814

Closed samreid closed 1 year ago

samreid commented 1 year ago

In https://github.com/phetsims/circuit-construction-kit-common/issues/630 it was requested that the carousel not leave empty layout holes when circuit elements are removed via visibleProperty = false in PhET-iO. The implementation could also support non-phet-io use cases, like adding/removing the non-ohmic bulb in CCK DC (Lab screen, Advanced, Add Real Bulbs). Sim-specific details are described in https://github.com/phetsims/circuit-construction-kit-common/issues/630. Summarizing the requests:

Circuit Construction Kit: DC: PhET-iO has the additional complexities:

As far as I understand from https://github.com/phetsims/circuit-construction-kit-common/issues/630, this feature is requested for the upcoming milestone release of CCK DC PhET-iO.

@pixelzoom can you please advise how to proceed, and help us estimate the time/complexity if we implement this?