-
-
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] Grid constantly updating a columns width which causes "flickering" #16170
Comments
This only happens on the docs page, so it is most probably unrelated to any grid specific feature. @KenanYusuf could you have a look? |
I was able to reproduce this locally as well. And it was also raised by our QA. I think it is related to the |
@dil-abokor we recently deprecated |
I managed to reproduce it here: EDIT: This shows the bug for me in Chorme and Edge but not in Firefox. If it looks perfect, try modifying the width of the container slightly. Until the first cells content doesn't fit in one line. |
Screen.Recording.2025-01-15.at.15.55.30.mov |
I can't reproduce it, but curious if #15627 would fix it, as I removed the possibility for recursively updating viewport inner size in that PR that seems to have been the cause for similar issues that have so far been fixed with pixel rounding. |
@dil-abokor, can you reproduce it here still? https://deploy-preview-15627--material-ui-x.netlify.app/x/react-data-grid/demo/ |
Yes, I can reproduce it on this url as well Screen.Recording.2025-01-17.at.08.25.59.mov |
@dil-abokor are you able to reproduce it on this demo? I've removed https://codesandbox.io/p/sandbox/16170-auto-height-flickering-pldl3f |
Yes, it is still happening |
Ok thanks @dil-abokor. Just to be sure it's related to the auto row height feature, if you comment out |
Exactly. If I comment it out, it doesn't happen. |
Think it's fixed here now? Steps to reproduce:
Reproducible here: https://next.mui.com/x/react-data-grid/demo/ |
@lauri865 I opened both links within the same browser and same width, and you're right, it is not flickering and I can't make it produce the bug anymore. |
#15648 also fixes it now that I think about it, but in a better way. Removes another source of dimension recursion that doesn't require rounding pixels. https://deploy-preview-15648--material-ui-x.netlify.app/x/react-data-grid/demo/ Combination of both of the PRs should improve resize and mount performance (under some circumstances at least). |
I can confirm, it is working fine on this preview too. |
Steps to reproduce
Steps:
Current behavior
Screen.Recording.2025-01-14.at.15.18.16.mov
It happens with Chrome and Firefox too.
Expected behavior
The Grid changes it's layout when we're resizing the window and stays in that state.
Context
I think it is only happening when the Grid uses flex column widths.
As you can see on the video, the "Column menu" cell keeps changing between being in one line or two.
If I inspect the DOM, a div with class
MuiDataGrid-scrollbarFiller MuiDataGrid-scrollbarFiller-borderTop
keeps appearing and disappearing.Your environment
It is happening with all recent versions locally, and on the Docs page it happens when switching it to v8 alpha as well.
npx @mui/envinfo
Search keywords: data grid, layout, width, flickering
The text was updated successfully, but these errors were encountered: