Closed samreid closed 2 years ago
As part of this issue. It would be helpful if you could explain why the button didn't work, but a nested VBox did. I don't really understand that part.
In slack @jonathanolson said:
widthSizable: true
I'm pretty sure this issue is just a duplicate of https://github.com/phetsims/sun/issues/783
Oops, didn't mean to close.
Not a duplicate of #783. This is a problem that is specific to #783. And the resize behavior of sun buttons in general (not just push buttons that involve Text is incorrect, as reported in https://github.com/phetsims/sun/issues/783#issuecomment-1227843745. So I'm going to generalize the title of this issue to reflect that.
Handled above. @samreid can you confirm?
I am seeing some layout regressions in sun buttons and thought it could be related to this issue. For example
There may be more, but those were some examples I noticed.
@jonathanolson can you please take the lead on the preceding comment before I review?
There was a flow for buttons setting specific sizes that wasn't handled, that should be fixed with the above commit.
Reviewed behavior in the context of Natural Selection, and button resize behavior is now as expected. I did not review the code changes. Closing.
Discovered in https://github.com/phetsims/chipper/issues/1302 by @jonathanolson and reviewed by @samreid and @zepumph .