phetsims / build-a-nucleus

"Build a Nucleus" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
0 stars 5 forks source link

Items in Partial Nuclide Chart panel can shift with some locales #216

Open Nancy-Salpepi opened 9 months ago

Nancy-Salpepi commented 9 months ago

Test device MacBook Air M1 chip

Operating System 14.0

Browser Chrome

Problem description For https://github.com/phetsims/qa/issues/1004, for locales where the translation for "Most Likely Decay Type" is long (ex. Italian, Danish, Portuguese(Brazil), Romana), switching from an equation to the word 'Stable' causes the contents of the panel to shift up and down.

Also seen in published.

Steps to reproduce Here is an example:

  1. Switch to Italian
  2. On the Chart Intro screen, change to the zoomed in chart
  3. Press the add protons + neutrons button 4 times --> the shift will happen between press 3 and 4.

Visuals Here is another example with romana:

https://github.com/phetsims/build-a-nucleus/assets/87318828/3886bd83-25c6-4ba9-b526-b6a8e86e646f

Troubleshooting information: !!!!! DO NOT EDIT !!!!! Name: ‪Costruisci un nucleo‬ URL: https://phet-dev.colorado.edu/html/build-a-nucleus/1.1.1-rc.1/phet/build-a-nucleus_all_phet.html Version: 1.1.1-rc.1 2023-11-16 01:59:28 UTC Features missing: applicationcache, applicationcache, touch Flags: pixelRatioScaling User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Language: en-US Window: 1433x728 Pixel Ratio: 2/1 WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium) GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) Vendor: WebKit (WebKit WebGL) Vertex: attribs: 16 varying: 30 uniform: 1024 Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32) Max viewport: 16384x16384 OES_texture_float: true Dependencies JSON: {}
zepumph commented 9 months ago

Thanks for the report. I don't want to hold up the MR for the bug fix. But I'll leave this open.