We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 112df59 commit 3cbb286Copy full SHA for 3cbb286
packages/@react-spectrum/s2/src/Picker.tsx
@@ -278,6 +278,8 @@ export const Picker = /*#__PURE__*/ (forwardRef as forwardRefType)(function Pick
278
menuOffset = 8;
279
}
280
281
+ let layout = new ListLayout({estimatedRowHeight: 32, estimatedHeadingHeight: 50, padding: 8})
282
+
283
return (
284
<AriaSelect
285
{...pickerProps}
@@ -349,12 +351,7 @@ export const Picker = /*#__PURE__*/ (forwardRef as forwardRefType)(function Pick
349
351
}]
350
352
]}>
353
<Virtualizer
- layout={ListLayout}
- layoutOptions={{
354
- estimatedRowHeight: 32,
355
- estimatedHeadingHeight: 50,
356
- padding: 8
357
- }}>
+ layout={layout}>
358
<ListBox
359
items={items}
360
className={listbox({size})}>
0 commit comments