phetsims / bending-light

"Bending Light" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/bending-light
GNU General Public License v3.0
8 stars 8 forks source link

Panel size for index of refraction- Prism screen #334

Closed amyh-phet closed 8 years ago

amyh-phet commented 8 years ago

In stringTest=long, the index of refraction panels seem to resize strangely on the Prism screen. The panels seem much larger than needed to accommodate the strings, making the lower panel go off screen. win_8_ie_stringtest long_panel_size

Not sure that this is a huge concern as I'm not sure strings will ever be this long, but the panel behavior seems strange.

amyh-phet commented 8 years ago

Observed similar behavior on Mac OS X 10.9.5 on Intro and More Tools screens. mac_os10 9 5 stringtest long_intro mac-os10 9 5_stringtest long_tools

arouinfar commented 8 years ago

While stringTest=long is not really a realistic scenario, I find it strange that the panels expand so much. In general, panels should only expand up to 50px before text is scaled down. I wonder if there's a minimum allowed font size that competes with maximum panel width.

samreid commented 8 years ago

The (often hidden) "what is n?" text was throwing off the layout. I've constrained the width and everything appears OK. I'll push changes to the 1.0 branch and master and this will require a spot test on 1 platform.

samreid commented 8 years ago

Fixed above.

arouinfar commented 8 years ago

It looks like the panel is resizing appropriately in rc.2, so I'll go ahead and close this issue. Good catch @amyh-phet, and thanks @samreid!