phetsims / sun

User-interface components for PhET simulations, built on top of Scenery.
MIT License
4 stars 12 forks source link

Button LayoutOptions unexpectedly affects the buttonContent rather than the layout cell #871

Open marlitas opened 6 months ago

marlitas commented 6 months ago

When passing LayoutOptions to a button inside a VBox I noticed that the minContentWidth/Height did not affect the layout cell of the button, but rather the content expanded to the minContentWidht/Height numbers. This was not how I understand LayoutOptions to work.