-
Notifications
You must be signed in to change notification settings - Fork 12
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
RectangularRadioButtonGroup
doesn't update layout when button widths change
#852
Comments
Assigning to the original author, he can pass it on to the dynamic layout experts if necessary. |
I just realized a screenshot would be helpful, so here is an example that can be easily duplicated with the recent Greenhouse Effect dev test version. To duplicate:
|
Aaron Davis was the original author of |
Just to confirm, because I believe I was initially confused when looking at this issue. We want the radio button widths to match across all the buttons? The group is updating is minimumWidths as I would expect, however visually the buttons should all be the same size and that is currently not happening? I will assign and take a look at this as well. |
@jonathanolson We would like you to prioritize this issue since it is now blocking Greenhouse: #851 |
…ointer areas and focus highlight, see #856, #851, #852, phetsims/greenhouse-effect#349
…sated for line-width changes, see phetsims/projectile-data-lab#187 (comment), related to #852
Wow - nice one-line fix @jonathanolson! In fact, there was a significant reduction in code including all the related commits shown above. I've verified that it's working correctly in Greenhouse Effect for the case described above. I think we're good to go here. Closing. |
The widths of the buttons in a
RectangularRadioButtonGroup
don't appear to update when the size of one button changes in a different way from the others. This was first reported as part of phetsims/greenhouse-effect#349, and there is another issue that was created for updating the just the highlight.I read through the code in
RectangularRadioButtonGroup
and found a portion of the code that looks like it is intended to make the widths of all the buttons the same. This code currently starts on line 181 of the source file and looks like this:This code probably needs to be re-run when the width changes for one or more of the buttons.
The text was updated successfully, but these errors were encountered: