Skip to content

Commit 2d00549

Browse files
authored
Update packages/x-data-grid/src/hooks/features/virtualization/useGridVirtualScroller.tsx
Signed-off-by: Kenan Yusuf <[email protected]>
1 parent acb4e05 commit 2d00549

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/x-data-grid/src/hooks/features/virtualization/useGridVirtualScroller.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,7 @@ export const useGridVirtualScroller = () => {
267267
dimensions.minimumSize.height - dimensions.viewportOuterSize.height,
268268
);
269269
const maxScrollLeft = Math.ceil(
270-
dimensions.minimumSize.width -
271-
// TODO: remove remove pinned columns once the below gets merged:
272-
// https://github.com/mui/mui-x/pull/15627
273-
(dimensions.viewportInnerSize.width +
274-
dimensions.leftPinnedWidth +
275-
dimensions.rightPinnedWidth),
270+
dimensions.minimumSize.width - dimensions.viewportInnerSize.width,
276271
);
277272

278273
// Clamp the scroll position to the viewport to avoid re-calculating the render context for scroll bounce

0 commit comments

Comments
 (0)