From c33bd5a1839844b21da120be1fdaefc4ff6f953e Mon Sep 17 00:00:00 2001 From: samreid Date: Tue, 30 Jun 2020 08:15:45 -0600 Subject: [PATCH] Add REVIEW comment, see https://github.com/phetsims/states-of-matter/issues/299 --- js/atomic-interactions/view/ForcesAccordionBox.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/atomic-interactions/view/ForcesAccordionBox.js b/js/atomic-interactions/view/ForcesAccordionBox.js index a12d263a..58ac25d1 100644 --- a/js/atomic-interactions/view/ForcesAccordionBox.js +++ b/js/atomic-interactions/view/ForcesAccordionBox.js @@ -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 ); }