Skip to content

Commit

Permalink
Add REVIEW comment, see #299
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jun 30, 2020
1 parent dd46065 commit c33bd5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/atomic-interactions/view/ForcesAccordionBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ function ForcesAccordionBox( forcesProperty, forceControlPanelExpandProperty, op
// convenience function for creating text with the attributes needed by this panel
function createText( string, width, fontSize ) {
const text = new Text( string, { font: new PhetFont( fontSize ), fill: options.textFill } );

// REVIEW: Can this be replaced by {maxWidth: ...} in the options?
if ( text.width > width ) {
text.scale( width / text.width );
}
Expand Down

0 comments on commit c33bd5a

Please sign in to comment.