Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting maxWidth for listboxParent causes scale/position problem #93

Closed
pixelzoom opened this issue Nov 15, 2019 · 6 comments
Closed

setting maxWidth for listboxParent causes scale/position problem #93

pixelzoom opened this issue Nov 15, 2019 · 6 comments
Labels

Comments

@pixelzoom
Copy link
Contributor

See phetsims/sun#542.

@pixelzoom
Copy link
Contributor Author

Fixed in the above commit.

@pixelzoom
Copy link
Contributor Author

Looks like this problem (phetsims/sun#542) is reoccurring. @arouinfar reported on Slack:

I was looking at some examples of how ComboBox handles i18n, and I noticed that the latest published version of pH Scale is not handling stringTest=long very gracefully. The problem started appearing in 1.3.0, but is not present in master. With the PhET-iO work going on, I doubt this would be the time to fix it up in a maintenance release, but I wanted to make you aware (if you weren’t already). It isn’t something sim-breaking, just not very pretty.

image

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Mar 3, 2020

@arouinfar I I could not reproduce this in master, so I re-read your description above. You said " the latest published version". And that's a fact -- it's broken in the latest published version (1.3.4), which is on the 1.3 release branch. This issue was marked "status:fixed-awaiting-deploy" because it had been fixed in master, and needs to be tested the next time we create a release branch. There is no plan to patch it in the 1.3 branch.

If for some reason you can re-produce this in master, please let me know.

@arouinfar
Copy link
Contributor

I never saw the problem on master, only in versions 1.3.0-1.3.4.

@arouinfar arouinfar removed their assignment Mar 4, 2020
@pixelzoom
Copy link
Contributor Author

pixelzoom commented Apr 6, 2020

To regression test:

Run the sim normally, and confirm that the listbox is the same width as the left portion of the combo box button (the part of the button that displays the selected value), and left-aligned with the button, as in this screenshot:

screenshot_242

Run the sim with ?stringTest=long, and confirm that the listbox is still the same width as the left portion of the combo box button, and left-aligned with the button, as in this screenshot:

screenshot_243

@KatieWoe
Copy link
Contributor

KatieWoe commented Aug 4, 2020

Looks good in phetsims/qa#514

@KatieWoe KatieWoe closed this as completed Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants