Skip to content

Commit

Permalink
Shift cards in carousel to left, see phetsims/number-compare#21
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisklus committed Mar 30, 2023
1 parent eaf3219 commit 75c7638
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/lab/view/NumberCardCreatorCarousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,18 @@ 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,
margin: 10,
spacing: 10,
animationOptions: {
duration: 0.4
}
},
} );

this.screenView = screenView;
Expand Down

0 comments on commit 75c7638

Please sign in to comment.