-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[DataGrid] Fix column spanning jump on scroll #17759
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
Conversation
Deploy preview: https://deploy-preview-17759--material-ui-x.netlify.app/ |
let foundStableColumn = false; | ||
|
||
// Keep checking columns until we find one that's not spanned in any visible row | ||
while (!foundStableColumn && firstNonSpannedColumnToRender >= 0) { |
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 firstNonSpannedColumnToRender
is always >= 0
firstNonSpannedColumnToRender, | ||
); | ||
|
||
if ( |
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.
at certain scroll positions it seems that this code is called in intervals (don't think it is because of the changes made in this PR)
Screen.Recording.2025-05-09.at.14.42.59.mov
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.
Nice catch! Opened a separate PR for this one: #17779
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.
LGTM, thanks for handling this 🙏
Cherry-pick PRs will be created targeting branches: v7.x |
Fixes #14130
Before: https://stackblitz.com/edit/vaghyrmw
After: https://stackblitz.com/edit/vaghyrmw-a2jg1urg