-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[data grid] The bottom pinned row in a data grid does not stay at the bottom when there aren't any other rows in the data set #12925
Comments
This is also a problem for us, and we cannot upgrade until this is fixed. |
We could unset the 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 2fc1b43d1..8ba65fa76 100644
--- a/packages/x-data-grid/src/hooks/features/virtualization/useGridVirtualScroller.tsx
+++ b/packages/x-data-grid/src/hooks/features/virtualization/useGridVirtualScroller.tsx
@@ -522,6 +522,8 @@ export const useGridVirtualScroller = () => {
} else {
size.height = contentHeight;
}
+ } else if (height === 1) {
+ size.height = undefined;
}
return size; any objections @romgrk ? Another option would use the OR you could use the aggregation feature: Aggregation |
@michelengelen Would this also cover the case if there was only 1 row, and a bunch of a blank space? |
The issue has been inactive for 7 days and has been automatically closed. |
Was this actually completed? |
@BrianWhiting: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example (7.3.1): https://stackblitz.com/edit/react-yp5dyf-mtr1cq?file=Demo.tsx
This appears to have broken with version 7.0.0.
6.19.11: https://stackblitz.com/edit/react-yp5dyf?file=Demo.tsx
7.0.0: https://stackblitz.com/edit/react-yp5dyf-1hxyj2?file=Demo.tsx
Current behavior
The bottom pinned row appears below the header
Expected behavior
The bottom pinned row should stay at the bottom of the grid
Context
I'm trying to display a grid of data with a pinned row at the bottom with the totals for each of the columns
Your environment
No response
Search keywords: pinned pin
The text was updated successfully, but these errors were encountered: