Skip to content

Commit

Permalink
use VerticalCheckboxGroup for the checkboxes, phetsims/inverse-square…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jul 2, 2019
1 parent 15053b9 commit 51bf752
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/VerticalCheckboxGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ define( function( require ) {
* @param {Object[]} items - Each item describes a checkbox, and is an object with these properties:
* node: {Node}, // label for the button
* property: {Property.<boolean>}, // Property associated with the button
* [options]: {Object}, // Item specific options to be passed to the checkbox
* [tandem]: {Tandem} // optional tandem for PhET-iO
* @param {Object} [options]
* @constructor
Expand Down Expand Up @@ -63,7 +64,7 @@ define( function( require ) {
children: [ new HStrut( maxItemWidth ), item.node ]
} );

var checkbox = new Checkbox( content, item.property, _.extend( {}, options.checkboxOptions, {
var checkbox = new Checkbox( content, item.property, _.extend( {}, item.options, options.checkboxOptions, {
tandem: item.tandem || Tandem.optional
} ) );

Expand Down

0 comments on commit 51bf752

Please sign in to comment.