-
-
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
[DataGrid] Flickering on grid initialization when using flex
columns
#3212
Comments
An example in the version I will have a look 👍 , it was probably introduced by #3007 |
We are debouncing the resize event to avoid resizing the grid dozens of time when resizing the window. But debouncing even the 1st resize event mean that the initialization is debounced, causing a render to squeeze between the column init without there flex size (to now if we need a scrollbar) and there update with there flex size. |
flex
columns
Can this be related to my issue in #2945 ? |
At first glance I don't think so but it's not impossible |
OK. Cause I do see the flicker too |
The flicker probably have the same cause |
Duplicates
Latest version
Current behavior 😯
When the table is first rendered, flex columns have some small fixed width, then they expand. This happens very quickly, so it looks like it flickers.
The following gif shows the difference between navigating between 2 different tables (4.0.1 vs 5.0.1). The flickering one is v5
Expected behavior 🤔
It should not flicker (it did not do this before I migrated to v5 - 4.0.1)
Steps to reproduce 🕹
The issue can be viewed in the official example sandbox https://codesandbox.io/s/3q8ue?file=/demo.js taken from https://mui.com/components/data-grid/columns/#fluid-width
Steps:
Context 🔦
No response
Your environment 🌎
No response
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: