Skip to content

Commit

Permalink
better maxWidth, phetsims/buoyancy#102
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 19, 2024
1 parent 854b8eb commit efd73cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/view/MassTagView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default class MassTagView extends TextureQuad {
const label = new Text( string, {
font: tagFont,
fill: Color.getLuminance( fill.value ) > ( 255 / 2 ) ? 'black' : 'white', // best guess?
maxWidth: 100
maxWidth: 30
} );

return new BackgroundNode( label, {
Expand Down

0 comments on commit efd73cf

Please sign in to comment.