Skip to content

Commit

Permalink
fix(Table): Improved virtualization scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Pinedo committed Nov 14, 2023
1 parent 46e1462 commit d3d9bce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/table/src/core/Table/useTableVirtualization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ export const useTableVirtualization = ({
const rowVirtualizer = useVirtualizer({
count: data.length,
getScrollElement: () => ref.current,
estimateSize: () => 30,
estimateSize: () => 100,
});

const columnVirtualizer = useVirtualizer({
count: columnDefs.length,
getScrollElement: () => ref.current,
estimateSize: () => 10,
estimateSize: () => 100,
horizontal: true,
getItemKey: (index: number) => columnDefs[index].id,
});
Expand Down

0 comments on commit d3d9bce

Please sign in to comment.