Skip to content

Commit

Permalink
remove custom layout for clearThermalEnergy button, see phetsims/grid…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed May 23, 2019
1 parent 8a1be64 commit f4e4a67
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions js/energy-skate-park/common/view/EnergyBarGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,21 +166,6 @@ define( require => {
const containingPanel = new Panel( content );
this.addChild( containingPanel );

// add the clear thermal button separately on top of the panel, it is separate from panel layout
// let thermalLabelBottom = this.barChartNode.getBarLabelLocation( 2, 'centerBottom' );
// thermalLabelBottom = containingPanel.globalToLocalPoint( this.barChartNode.localToGlobalPoint( thermalLabelBottom ) );

// const clearThermalButton = new MoveToTrashButton( {
// arrowColor: EnergySkateParkColorScheme.thermalEnergy,
// tandem: tandem.createTandem( 'clearThermalButton' ),
// listener: skater.clearThermal.bind( skater ),
// centerX: thermalLabelBottom.x,
// y: thermalLabelBottom.y + THERMAL_BUTTON_SPACING,
// scale: 0.7
// } );

// this.addChild( clearThermalButton );

// attach listeners - bar chart exists for life of sim, no need to dispose
skater.energyChangedEmitter.addListener( () => { this.updateWhenVisible( barGraphVisibleProperty.value ); } );
barGraphVisibleProperty.link( this.updateWhenVisible.bind( this ) );
Expand Down

0 comments on commit f4e4a67

Please sign in to comment.