From 7eace29080da6e33649c543d31f03c5223fbe0ad Mon Sep 17 00:00:00 2001 From: zepumph Date: Tue, 20 Apr 2021 10:23:31 -0800 Subject: [PATCH] dilate to support chevron button, and add TODO, https://github.com/phetsims/joist/issues/704 --- js/common/view/RAPScreenView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/common/view/RAPScreenView.js b/js/common/view/RAPScreenView.js index 2e03ace9..300c435d 100644 --- a/js/common/view/RAPScreenView.js +++ b/js/common/view/RAPScreenView.js @@ -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