Closed KatieWoe closed 1 year ago
Collaborating with @zepumph and @jonathanolson, we also saw that GridBox wasn't yAlign: 'top'
as we expected, when we tried using GridBox for this. I'll open a scenery issue.
@zepumph and I made a commit above to correct the problem, and discussed with @jonathanolson to open a side issue for future improvement. @KatieWoe can you please review this in master? It currently looks like this for us:
If this looks good, please reassign to me and label as ready for cherry-picking.
This looks good on master with stringTest=long
This does not seem to be fixed in https://github.com/phetsims/qa/issues/841
I see this in RC.3, do you see something different?
Just wen to take a screenshot and realized the window was partly off screen, which probably caused what I was seeing. It still looks lower than it did though, even in your screenshot.
It is different code so it looks slightly different, I don't think the previous version was ever actually centered, it just ensured a bit of margin on both the top and bottom, as we are doing here. Does the current version seem acceptable given that consideration?
I think so. Thanks for clarifying. Closing for now, is something else comes up I'll reopen.
Reopening. During https://github.com/phetsims/qa/issues/844 I noticed that, when the strings are long, the icons change position and drop down, and if only one is long, the icons are not aligned with each other. This happens in Gravity and Orbits as well. This is what the icons should look like:
I believe when we discussed with @jonathanolson and @zepumph we raised the idea of a grid layout but decided against it. @arouinfar how severe would you consider this problem and how much effort should be made to align those for varying string lengths?
I am not particularly bothered by the vertical shift. However, I find it odd that the first screen's maxWidth
appears to be so much smaller than the second screen. Switching the localeProperty
while the sim is running has a different appearance than loading the sim with the locale
query parameter. Here's an example with locale=bs
where the screen names have a similar character count.
Switching the localeProperty
at runtime:
Initializing the locale with a query parameter:
It seems like the culprit may be the relative size of the English strings. "Model" is much shorter than "Real Molecules", so the first screen ends up with less width when dynamically changing the locale. Is this the expected behavior? It doesn't seem ideal to me, but I wouldn't consider it a publication-blocking issue, either.
Back to @jonathanolson and @samreid.
Edit: screenshots were taken from the latest dev of Molecule Shapes (currently in QA testing) https://phet-dev.colorado.edu/html/molecule-shapes/1.5.0-dev.4/phet/molecule-shapes_all_phet.html
It looks like in issue https://github.com/phetsims/joist/issues/438 we added this code:
This means the maxWidth of the screen icon is being set to its initial width. Should we just choose a constant for this, or perhaps a function that only depends on the number of screens?
Thanks @samreid! I opened https://github.com/phetsims/joist/issues/884 to continue the discussion around screen title maxWidth
. I don't think anything else remains for this issue, so I'll close.
Test device Dell Operating System Win 11 Browser Chrome Problem description For https://github.com/phetsims/qa/issues/838. Text may not be vertically centered. This is especially the case when strings are longer than in English. This can be done with
?stringTest=long
or with existing translations. This can be easily seen with the icons in the nav bar. This seems to be related to https://github.com/phetsims/joist/issues/645.Visuals Current RC:
Published Sim:
Troubleshooting information: