material-react-table 1.5.0-beta.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.0-beta.2",
2
+ "version": "1.5.0",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
@@ -258,9 +258,7 @@ export const getCommonCellStyles = ({
258
258
  column.getIsPinned() === 'left' &&
259
259
  column.getPinnedIndex() === 0
260
260
  ? `-${
261
- column.getSize() *
262
- (table.getState().columnPinning.left?.length ?? 1) *
263
- 1.2
261
+ column.getSize() * (table.getState().columnPinning.left?.length ?? 1)
264
262
  }px`
265
263
  : undefined,
266
264
  mr:
@@ -47,6 +47,7 @@ export const MRT_Table: FC<Props> = ({ table }) => {
47
47
 
48
48
  //get first 16 column widths and average them
49
49
  const averageColumnWidth = useMemo(() => {
50
+ if (!enableColumnVirtualization) return 0;
50
51
  const columnsWidths =
51
52
  table
52
53
  .getRowModel()