Skip to content

Commit 581119f

Browse files
committed
fix autoresize with pinned columns
1 parent bbab47f commit 581119f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/x-data-grid/src/hooks/features/columnResize/useGridColumnResize.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -747,10 +747,7 @@ export const useGridColumnResize = (
747747
0,
748748
);
749749
const dimensions = apiRef.current.getRootDimensions();
750-
const availableWidth =
751-
dimensions.viewportInnerSize.width -
752-
dimensions.leftPinnedWidth -
753-
dimensions.rightPinnedWidth;
750+
const availableWidth = dimensions.viewportInnerSize.width;
754751
const remainingWidth = availableWidth - totalWidth;
755752

756753
if (remainingWidth > 0) {

0 commit comments

Comments
 (0)