phetsims / vegas

Reusable game components for PhET simulations.
MIT License
1 stars 4 forks source link

margins on LevelStartButton #14

Closed pixelzoom closed 10 years ago

pixelzoom commented 10 years ago

There is currently no way to specify the margin around the button icon. It's essentially hard-coded here:

var iconScaleFactor = Math.min( options.buttonHeight * 0.65 / icon.height, options.buttonWidth * 0.85 / icon.width );

This probably worked fine for Balancing Act, where the icons were short and wide. But it's not a general solution.

pixelzoom commented 10 years ago

Done. Assigning to @jbphet for review.

jbphet commented 10 years ago

Looks fine, closing.