Skip to content

Commit

Permalink
change constructor signature for Checkbox and its subclasses, phetsim…
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jun 23, 2022
1 parent ccd2b7f commit 6b04f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/view/BeakerControlPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ class BeakerControlPanel extends Panel {
const ratioLabel = new RichText( ratioString, {
font: FONT
} );
const ratioCheckbox = new Checkbox( ratioLabel, ratioVisibleProperty, {
const ratioCheckbox = new Checkbox( ratioVisibleProperty, ratioLabel, {
tandem: options.tandem.createTandem( 'ratioCheckbox' )
} );
ratioCheckbox.touchArea = ratioCheckbox.localBounds.dilatedXY( 10, 6 );

// 'Molecule count' checkbox
const moleculeCountLabel = new Text( phScaleStrings.moleculeCount, { font: FONT } );
const moleculeCountCheckbox = new Checkbox( moleculeCountLabel, moleculeCountVisibleProperty, {
const moleculeCountCheckbox = new Checkbox( moleculeCountVisibleProperty, moleculeCountLabel, {
tandem: options.tandem.createTandem( 'moleculeCountCheckbox' )
} );
moleculeCountCheckbox.touchArea = ratioCheckbox.localBounds.dilatedXY( 10, 6 );
Expand Down

0 comments on commit 6b04f93

Please sign in to comment.