diff --git a/js/view/ISLCCheckboxItem.js b/js/view/ISLCCheckboxItem.js index 83857e3..d7fd8af 100644 --- a/js/view/ISLCCheckboxItem.js +++ b/js/view/ISLCCheckboxItem.js @@ -1,7 +1,7 @@ // Copyright 2017, University of Colorado Boulder /** - * A checkbox item displayed in an ISLCCheckboxPanel. Conforms to the interface of values passed to VerticalCheckBoxGroup + * A checkbox item displayed in an ISLCCheckboxPanel. Conforms to the interface of values passed to VerticalCheckboxGroup * * @author Sam Reid (PhET Interactive Simulations) */ diff --git a/js/view/ISLCCheckboxPanel.js b/js/view/ISLCCheckboxPanel.js index 8f6084a..681f78f 100644 --- a/js/view/ISLCCheckboxPanel.js +++ b/js/view/ISLCCheckboxPanel.js @@ -15,7 +15,7 @@ define( function( require ) { var inverseSquareLawCommon = require( 'INVERSE_SQUARE_LAW_COMMON/inverseSquareLawCommon' ); var Panel = require( 'SUN/Panel' ); var Tandem = require( 'TANDEM/Tandem' ); - var VerticalCheckBoxGroup = require( 'SUN/VerticalCheckBoxGroup' ); + var VerticalCheckboxGroup = require( 'SUN/VerticalCheckboxGroup' ); /** * @param {ISLCCheckboxItem[]} checkboxItems @@ -34,14 +34,14 @@ define( function( require ) { }, options ); // the check boxes in the group will be as wide as the labels are tall - var checkBoxWidth = _.max( checkboxItems.map( function( item ) { + var checkboxWidth = _.max( checkboxItems.map( function( item ) { return item.content.height; } ) ); - assert && assert( checkBoxWidth > 0, 'checkBox width must be positive' ); + assert && assert( checkboxWidth > 0, 'checkbox width must be positive' ); - var checkboxGroup = new VerticalCheckBoxGroup( checkboxItems, { - boxWidth: checkBoxWidth + var checkboxGroup = new VerticalCheckboxGroup( checkboxItems, { + boxWidth: checkboxWidth } ); Panel.call( this, checkboxGroup, options );