Skip to content

Commit

Permalink
Update story for better testing this edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberDex committed Jun 29, 2023
1 parent 0ea45f8 commit 399c883
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/stories/scrollBox/ScrollBoxGraphics.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ export const UseGraphics: StoryFn = ({

for (let i = 0; i < itemsAmount; i++)
{
const buttonWrapper = new Container();
const buttonWrapper1 = new Container();
const buttonWrapper2 = new Container();

buttonWrapper1.addChild(buttonWrapper2);

const button = new FancyButton({
defaultView: new Graphics().beginFill(0xa5e24d).drawRoundedRect(0, 0, elementsWidth, elementsHeight, radius),
Expand All @@ -59,12 +62,12 @@ export const UseGraphics: StoryFn = ({
})
});

buttonWrapper.addChild(button);
buttonWrapper2.addChild(button);

button.anchor.set(0);
button.onPress.connect(() => onPress(i + 1));

items.push(buttonWrapper);
items.push(buttonWrapper1);
}

// Component usage !!!
Expand Down

0 comments on commit 399c883

Please sign in to comment.