Skip to content

Commit

Permalink
use lineWrap instead of a manual <br>, phetsims/buoyancy#150
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed May 15, 2024
1 parent 6f65329 commit d972f29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion density-buoyancy-common-strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@
"value": "{{value}}%"
},
"fluidDisplaced": {
"value": "Fluid<br>Displaced"
"value": "Fluid Displaced"
},
"depthLines": {
"value": "Depth Lines"
Expand Down
4 changes: 3 additions & 1 deletion js/buoyancy/view/BuoyancyLabScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export default class BuoyancyLabScreenView extends DensityBuoyancyScreenView<Buo
model.gravityProperty ), {
titleNode: new RichText( DensityBuoyancyCommonStrings.fluidDisplacedStringProperty, {
font: new PhetFont( 14 ), // Matches the checkbox label font size
maxWidth: 100
maxWidth: 100,
lineWrap: 90,
maxHeight: 40
} ),
expandedDefaultValue: false,

Expand Down

0 comments on commit d972f29

Please sign in to comment.