Skip to content

Commit

Permalink
Fix RTL for other chemical formula views, see #220, phetsims/joist#973,
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Jul 15, 2024
1 parent e4830fe commit 5b451b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/common/view/MultipleCollectionBoxNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class MultipleCollectionBoxNode extends CollectionBoxNode {
else {
quantityNode.string = StringUtils.fillIn( BuildAMoleculeStrings.collectionMultipleQuantityPattern, {
number: quantity,
formula: box.moleculeType.getGeneralFormulaFragment()
formula: StringUtils.wrapLTR( box.moleculeType.getGeneralFormulaFragment() )
} );
}
} );
Expand All @@ -50,7 +50,7 @@ class MultipleCollectionBoxNode extends CollectionBoxNode {
// General formula for the molecule goal
this.insertChild( 0, new RichText( StringUtils.fillIn( BuildAMoleculeStrings.collectionMultipleGoalPattern, {
number: box.capacity,
formula: box.moleculeType.getGeneralFormulaFragment()
formula: StringUtils.wrapLTR( box.moleculeType.getGeneralFormulaFragment() )
} ), {
font: new PhetFont( {
size: 15,
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/view3d/Molecule3DDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Molecule3DDialog extends Dialog {
title.setString( StringUtils.fillIn( BuildAMoleculeStrings.moleculeNamePattern, {
display: completeMolecule.getDisplayName()
} ) );
formulaText.setString( completeMolecule.getGeneralFormulaFragment() );
formulaText.setString( StringUtils.wrapLTR( completeMolecule.getGeneralFormulaFragment() ) );
}
} );

Expand Down

0 comments on commit 5b451b4

Please sign in to comment.