From b48638f276e0ab372000b069dc46097f34840cbc Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Thu, 17 Jan 2019 13:19:42 -0700 Subject: [PATCH] convert to new ComboBoxItem, https://github.com/phetsims/sun/issues/450 Signed-off-by: Chris Malley --- js/common/view/MediumControlPanel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/common/view/MediumControlPanel.js b/js/common/view/MediumControlPanel.js index 3f7067de..e24e8bff 100644 --- a/js/common/view/MediumControlPanel.js +++ b/js/common/view/MediumControlPanel.js @@ -16,6 +16,7 @@ define( function( require ) { var BendingLightConstants = require( 'BENDING_LIGHT/common/BendingLightConstants' ); var Bounds2 = require( 'DOT/Bounds2' ); var ComboBox = require( 'SUN/ComboBox' ); + var ComboBoxItem = require( 'SUN/ComboBoxItem' ); var Dimension2 = require( 'DOT/Dimension2' ); var DispersionFunction = require( 'BENDING_LIGHT/common/model/DispersionFunction' ); var HSlider = require( 'SUN/HSlider' ); @@ -104,7 +105,7 @@ define( function( require ) { itemName.scale( comboBoxTextWidth / itemName.width ); } - return ComboBox.createItem( itemName, item ); + return new ComboBoxItem( itemName, item ); }; // states to choose from (and indicate) in the combo box var substances = [ @@ -152,7 +153,7 @@ define( function( require ) { labelNode: materialTitle, listPosition: options.comboBoxListPosition, xMargin: 7, - yMargin: 4, + yMargin: 7, arrowHeight: 6, cornerRadius: 3 } );