From 3f12d3de1b6961105493978f48c532375289f7fa Mon Sep 17 00:00:00 2001 From: kalyan90 Date: Mon, 14 Oct 2024 22:22:21 +0530 Subject: [PATCH] [Data grid] Fix excessive white space at the end of grid (#14864) --- .../hooks/features/virtualization/useGridVirtualScroller.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x-data-grid/src/hooks/features/virtualization/useGridVirtualScroller.tsx b/packages/x-data-grid/src/hooks/features/virtualization/useGridVirtualScroller.tsx index 26505febe3dd..f72c1896480c 100644 --- a/packages/x-data-grid/src/hooks/features/virtualization/useGridVirtualScroller.tsx +++ b/packages/x-data-grid/src/hooks/features/virtualization/useGridVirtualScroller.tsx @@ -510,7 +510,7 @@ export const useGridVirtualScroller = () => { return rows; }; - const needsHorizontalScrollbar = outerSize.width && columnsTotalWidth >= outerSize.width; + const needsHorizontalScrollbar = outerSize.width && columnsTotalWidth > outerSize.width; const scrollerStyle = React.useMemo( () =>