From 6b5b92c5c2b33a63879284b4f296693d4676e80b Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Mon, 14 Jan 2019 18:41:17 -0700 Subject: [PATCH] big ComboBox refactors, https://github.com/phetsims/sun/issues/430, https://github.com/phetsims/sun/issues/428, https://github.com/phetsims/sun/issues/419 --- js/real/RealMoleculesScreenView.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/real/RealMoleculesScreenView.js b/js/real/RealMoleculesScreenView.js index 708dab1..537e8e9 100644 --- a/js/real/RealMoleculesScreenView.js +++ b/js/real/RealMoleculesScreenView.js @@ -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