From 7fdcc675b52138e51c7af2f92167f8c2376ccce9 Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Wed, 16 Jan 2019 12:57:22 -0700 Subject: [PATCH] set cornerRadius for sims that relied on old default in ComboBox, https://github.com/phetsims/projectile-motion/issues/171 --- js/demo/DemosScreenView.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/demo/DemosScreenView.js b/js/demo/DemosScreenView.js index ed4cc044..1f0c51d1 100644 --- a/js/demo/DemosScreenView.js +++ b/js/demo/DemosScreenView.js @@ -31,11 +31,15 @@ define( function( require ) { function DemosScreenView( demos, options ) { options = _.extend( { + + selectedDemoLabel: null, // {string|null} label field of the demo to be selected initially + + // options related to the ComboBox that selects the demo + comboBoxCornerRadius: 4, comboBoxLocation: new Vector2( 20, 20 ), // {Vector2} location of ComboBox used to select a demo comboBoxItemFont: new PhetFont( 20 ), // {Font} font used for ComboBox items comboBoxItemXMargin: 12, // {number} x margin around ComboBox items comboBoxItemYMargin: 12, // {number} y margin around ComboBox items - selectedDemoLabel: null, // {string|null} label field of the demo to be selected initially // {boolean} see https://github.com/phetsims/sun/issues/386 // true = caches Nodes for all demos that have been selected @@ -87,6 +91,7 @@ define( function( require ) { var selectedDemoProperty = new Property( selectedDemo ); var comboBox = new ComboBox( comboBoxItems, selectedDemoProperty, listParent, { buttonFill: 'rgb( 218, 236, 255 )', + cornerRadius: options.comboBoxCornerRadius, xMargin: options.comboBoxItemXMargin, yMargin: options.comboBoxItemYMargin, top: options.comboBoxLocation.x,