Skip to content

Commit

Permalink
Addressed REVIEW: Removing mystery shelf from stretch and bounce scre…
Browse files Browse the repository at this point in the history
…en. #48
  • Loading branch information
Denz1994 committed Jan 30, 2019
1 parent 3adec77 commit 9c3da7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions js/bounce/view/BounceScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,8 @@ define( require => {
rectY: this.modelViewTransform.modelToViewY( MassesAndSpringsConstants.FLOOR_Y ) - this.shelf.rectHeight
} );

const mysteryMassesShelf = new ShelfNode( tandem, {
rectHeight: 7,
rectWidth: 120,
left: labeledMassesShelf.right + this.spacing * 2,
rectY: this.modelViewTransform.modelToViewY( MassesAndSpringsConstants.FLOOR_Y ) - this.shelf.rectHeight
} );

// Back layer used to handle z order of view elements.
this.backLayer.children = [ this.backgroundDragPlane, rightPanelsVBox, labeledMassesShelf, mysteryMassesShelf ];
this.backLayer.children = [ this.backgroundDragPlane, rightPanelsVBox, labeledMassesShelf ];
}
}

Expand Down
9 changes: 1 addition & 8 deletions js/stretch/view/StretchScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,6 @@ define( require => {
rectY: this.modelViewTransform.modelToViewY( MassesAndSpringsConstants.FLOOR_Y ) - this.shelf.rectHeight
} );

const mysteryMassesShelf = new ShelfNode( tandem, {
rectHeight: 7,
rectWidth: 120,
left: labeledMassesShelf.right + this.spacing * 2,
rectY: this.modelViewTransform.modelToViewY( MassesAndSpringsConstants.FLOOR_Y ) - this.shelf.rectHeight
} );

// @public {DraggableRulerNode}
this.rulerNode = new DraggableRulerNode(
this.modelViewTransform,
Expand All @@ -116,7 +109,7 @@ define( require => {
this.addChild( this.rulerNode );

// Back layer used to handle z order of view elements.
this.backLayer.children = [ this.backgroundDragPlane, optionsPanel, labeledMassesShelf, mysteryMassesShelf ];
this.backLayer.children = [ this.backgroundDragPlane, optionsPanel, labeledMassesShelf ];

this.visibleBoundsProperty.link( () => {
optionsPanel.rightTop = new Vector2( this.panelRightSpacing, this.springSystemControlsNode.top );
Expand Down

0 comments on commit 9c3da7a

Please sign in to comment.