From 2aa87c1112310000c6272a1c46cb95ef5453639c Mon Sep 17 00:00:00 2001 From: chrisklus Date: Wed, 2 Feb 2022 10:36:49 -0700 Subject: [PATCH] Add margins to the kick buttons, see https://github.com/phetsims/center-and-spread/issues/6 --- js/common/view/SoccerScreenView.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/common/view/SoccerScreenView.ts b/js/common/view/SoccerScreenView.ts index ff54a977..3b0264aa 100644 --- a/js/common/view/SoccerScreenView.ts +++ b/js/common/view/SoccerScreenView.ts @@ -14,6 +14,7 @@ import CASModel from '../model/CASModel.js'; import CASScreenView, { CASScreenViewOptions } from './CASScreenView.js'; import QuestionBar, { QuestionBarOptions } from './QuestionBar.js'; import KickButtonGroup from './KickButtonGroup.js'; +import CASConstants from '../CASConstants.js'; type SoccerScreenViewSelfOptions = { questionBarOptions: QuestionBarOptions @@ -33,8 +34,8 @@ class SoccerScreenView extends CASScreenView { this.addChild( new QuestionBar( this.layoutBounds, this.visibleBoundsProperty, options.questionBarOptions ) ); this.addChild( new KickButtonGroup( { - left: this.layoutBounds.left, - bottom: this.layoutBounds.bottom + left: CASConstants.SCREEN_VIEW_X_MARGIN, + bottom: this.layoutBounds.bottom - CASConstants.SCREEN_VIEW_Y_MARGIN } ) ); }