Skip to content

Commit

Permalink
nest numberControl under initialSpeedPanel, #219
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 27, 2020
1 parent 1f1c17c commit a00bf85
Show file tree
Hide file tree
Showing 2 changed files with 276 additions and 274 deletions.
6 changes: 4 additions & 2 deletions js/common/view/ProjectileMotionScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ define( require => {
units: metersPerSecondString
} );

const initialSpeedPanelTandem = tandem.createTandem( 'initialSpeedPanel' );

// initial speed readout, slider, and tweakers
const initialSpeedNumberControl = new NumberControl(
initialSpeedString, model.initialSpeedProperty,
Expand All @@ -168,7 +170,7 @@ define( require => {
touchAreaXDilation: 20,
touchAreaYDilation: 20
},
tandem: tandem.createTandem( 'initialSpeedNumberControl' ),
tandem: initialSpeedPanelTandem.createTandem( 'numberControl' ),
phetioDocumentation: 'the control for the initial speed as a projectile leaves the cannon'
}
);
Expand All @@ -179,7 +181,7 @@ define( require => {
merge( {
left: this.layoutBounds.left + X_MARGIN,
bottom: this.layoutBounds.bottom - 10,
tandem: tandem.createTandem( 'initialSpeedPanel' )
tandem: initialSpeedPanelTandem
}, ProjectileMotionConstants.INITIAL_SPEED_PANEL_OPTIONS )
);

Expand Down
Loading

0 comments on commit a00bf85

Please sign in to comment.