Skip to content

Commit

Permalink
set cornerRadius for sims that relied on old default in ComboBox, phe…
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jan 16, 2019
1 parent b89067e commit 7fdcc67
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/demo/DemosScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7fdcc67

Please sign in to comment.