Skip to content

Commit

Permalink
Adjust maxWidths for InitialNetWorthAccordionBox.js, see: #101
Browse files Browse the repository at this point in the history
  • Loading branch information
marlitas committed Nov 27, 2023
1 parent f60fe95 commit cd5ae4f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/operations/view/InitialNetWorthAccordionBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,20 @@ class InitialNetWorthAccordionBox extends AccordionBox {
options = merge( {
titleNode: new Text( NumberLineOperationsStrings.initialNetWorthStringProperty, {
font: new PhetFont( 18 ),
maxWidth: 200 // empirically determined using stringTest=long
maxWidth: 200
} )
}, NLCConstants.ACCORDION_BOX_COMMON_OPTIONS, options );

const label = new RichText( NumberLineOperationsStrings.initialNetWorthWithBreakStringProperty, {
align: 'center',
font: new PhetFont( 24 ),
maxWidth: 150 // empirically determined using stringTest=long
maxWidth: 150,
maxHeight: 90
} );

const currencyUnits = new Text( NumberLineOperationsStrings.currencyUnitsStringProperty, {
font: new PhetFont( 24 ),
maxWidth: 150 // empirically determined using stringTest=long
maxWidth: 100
} );

const initialNetWorthPicker = new NumberPicker(
Expand Down

0 comments on commit cd5ae4f

Please sign in to comment.