-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[DataGrid] Add scroll shadows and fix scrollbar overlap #16476
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
[DataGrid] Add scroll shadows and fix scrollbar overlap #16476
Conversation
Deploy preview: https://deploy-preview-16476--material-ui-x.netlify.app/ Updated pages: Bundle size report
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
bottom: 0, | ||
}); | ||
|
||
export const ScrollbarCorner = styled(Scrollbar)({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/x-data-grid/src/components/containers/GridRootStyles.ts
Outdated
Show resolved
Hide resolved
89a113a
to
9707912
Compare
dimensions.minimumSize.height - dimensions.viewportOuterSize.height, | ||
dimensions.contentSize.height - dimensions.viewportInnerSize.height, | ||
); | ||
const maxScrollLeft = Math.ceil( | ||
dimensions.minimumSize.width - dimensions.viewportInnerSize.width, | ||
dimensions.contentSize.width - dimensions.viewportInnerSize.width, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Iiuc, this is a bugfix for the virtualization code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if I'm remembering correctly it fixes a miscalculation.
This pull request has been inactive for 30 days. Please remove the stale label or leave a comment to keep it open. Otherwise, it will be closed in 15 days. |
this fixes the shadow not being shown, when the first pinned column is added by the user when there's a horizontal scroll
OK, this PR is ready for review again. |
Preview: https://deploy-preview-16476--material-ui-x.netlify.app/x/react-data-grid/column-pinning/#pinned-columns-appearance
Conditional scroll shadows
Adds conditional scroll shadows when there are pinned columns and rows. Closes #10001
Screen.Recording.2025-06-25.at.11.05.46.mov
Vertical scrollbar changes
Update vertical scrollbar positioning to cover pinned rows (previous discussion #16379). TLDR; this is a usability improvement, as it currently doesn't look as though you can scroll vertically over pinned rows.
Also fixes #13286
Changelog