Skip to content

Commit

Permalink
dilate to support chevron button, and add TODO, phetsims/joist#704
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Apr 20, 2021
1 parent c2d885a commit 7eace29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/common/view/RAPScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ class RAPScreenView extends ScreenView {

this.antecedentRatioHalf.layout( newRatioHalfBounds, heightScalar );
this.consequentRatioHalf.layout( newRatioHalfBounds, heightScalar );
backgroundNode.rectBounds = this.visibleBoundsProperty.value;

// TODO: dilated to support voicing toolbar bounds. Upon this writing, the chevron button was 27px wide, this should be changed based on the outcome of https://github.com/phetsims/joist/issues/704
backgroundNode.rectBounds = this.visibleBoundsProperty.value.dilatedX( 30 );
backgroundNode.bottom = this.layoutBounds.bottom;

// subtract the top and bottom rectangles from the tick marks height
Expand Down

0 comments on commit 7eace29

Please sign in to comment.