diff --git a/packages/react-aria-components/stories/ListBox.stories.tsx b/packages/react-aria-components/stories/ListBox.stories.tsx index 8a7b98c8d96..110c6885a5f 100644 --- a/packages/react-aria-components/stories/ListBox.stories.tsx +++ b/packages/react-aria-components/stories/ListBox.stories.tsx @@ -353,6 +353,8 @@ function generateRandomString(minLength: number, maxLength: number): string { function VirtualizedListBoxRender(args): JSX.Element { let {variableHeight, isLoading, orientation} = args; + let estimatedRowHeight = orientation === 'horizontal' ? 117 : 25; + let estimatedHeadingHeight = orientation === 'horizontal' ? 63 : 26; let heightProperty = orientation === 'horizontal' ? 'width' : 'height'; let widthProperty = orientation === 'horizontal' ? 'height' : 'width'; let sections: {id: string, name: string, children: {id: string, name: string}[]}[] = []; @@ -369,8 +371,8 @@ function VirtualizedListBoxRender(args): JSX.Element {