Skip to content

Commit

Permalink
big ComboBox refactors, phetsims/sun#430, phetsims/sun#428, phetsims/…
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jan 15, 2019
1 parent f965b5f commit 6b5b92c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/real/RealMoleculesScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ define( function( require ) {
var comboBoxMolecules = model.isBasicsVersion ? RealMoleculeShape.TAB_2_BASIC_MOLECULES : RealMoleculeShape.TAB_2_MOLECULES;
var comboBox = new ComboBox( _.map( comboBoxMolecules, function( realMoleculeShape ) {
return ComboBox.createItem( new RichText( ChemUtils.toSubscript( realMoleculeShape.displayName ) ), realMoleculeShape );
} ), model.realMoleculeShapeProperty, comboBoxListContainer, {} );
} ), model.realMoleculeShapeProperty, comboBoxListContainer, {
xMargin: 13,
yMargin: 10
} );
var optionsNode = new OptionsNode( model );

// calculate the maximum width, so we can make sure our panels are the same width by matching xMargins
Expand Down

0 comments on commit 6b5b92c

Please sign in to comment.