From 75c7638bd87687d6511c1a29d6670f025eeecaab Mon Sep 17 00:00:00 2001 From: chrisklus Date: Thu, 30 Mar 2023 14:49:07 -0600 Subject: [PATCH] Shift cards in carousel to left, see https://github.com/phetsims/number-compare/issues/21 --- js/lab/view/NumberCardCreatorCarousel.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/lab/view/NumberCardCreatorCarousel.ts b/js/lab/view/NumberCardCreatorCarousel.ts index 72c8f11..cb47fc6 100644 --- a/js/lab/view/NumberCardCreatorCarousel.ts +++ b/js/lab/view/NumberCardCreatorCarousel.ts @@ -51,7 +51,10 @@ class NumberCardCreatorCarousel extends Carousel { super( numberCardCreatorNodes.map( numberCardCreatorNode => { return { - createNode: ( tandem: Tandem ) => new Node().addChild( numberCardCreatorNode ) + createNode: ( tandem: Tandem ) => new Node().addChild( numberCardCreatorNode ), + alignBoxOptions: { + xAlign: 'left' + } }; } ), { itemsPerPage: 10, @@ -59,7 +62,7 @@ class NumberCardCreatorCarousel extends Carousel { spacing: 10, animationOptions: { duration: 0.4 - } + }, } ); this.screenView = screenView;