phetsims / geometric-optics

Geometric Optics is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
6 stars 5 forks source link

Tool disappears if sim is launched while zoomed out #468

Closed KatieWoe closed 1 year ago

KatieWoe commented 1 year ago

Device Samsung OS Win 11 Browser Chrome Problem Description For https://github.com/phetsims/qa/issues/938 and https://github.com/phetsims/qa/issues/939. May be related to https://github.com/phetsims/geometric-optics/issues/467. If you launch the sim with a tool like a ruler in the scene, and you are zoomed out with the zoom buttons, the tool may be in a different place or gone entirely in the launched sim. Steps

  1. Remove a ruler from the tool box
  2. Zoom out all the way with the scene zoom buttons
  3. Launch the sim

Visuals Geometric Optics screenshot

pixelzoom commented 1 year ago

This is a duplicate of #467. If the tool is removed from the toolbox and placed near the top of the screen, then it will be off the top of the screen in the Standard Wrapper (Test).

For example, if you place a ruler like this in Studio:

screenshot_2514

Then press the "Test" button and you'll see what @KatieWoe reported above. But if you resize the browser window, then you'll see the ruler way up above the toolbox:

screenshot_2513