phetsims / unit-rates

"Unit Rates" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
0 stars 2 forks source link

Layout bug in DoubleNumberLineAccordionBox #218

Closed pixelzoom closed 1 year ago

pixelzoom commented 1 year ago

Probably introduced by @jonathanolson in https://github.com/phetsims/sun/issues/803 for dynamic layout. The parts of the "Double Number Line" accordion box are shifting around dramatically as you interact with it.

The layout of the "Double Number Line" accordion box should be static, and should look generally like this:

screenshot_2668

Instead, parts of the content move around as you interact. To reproduce:

  1. Go to the Shopping screen. The accordion box looks like this:

    screenshot_2669
  2. Enter a numerator value in the marker editor, e.g. '2'. The number line axes and their labels shift to the left. It's difficult to tell if the marker is in the correct location.

    screenshot_2670

3.Press the undo button, at the left of the number line. The number line axes and their labels shift back to the right.

screenshot_2669