Column headers become unaligned with their respective columns after sorting/ordering #4014
Closed
2 tasks done
Labels
component: data grid
This is the name of the generic UI component, not the React module!
duplicate
This issue or pull request already exists
Duplicates
Latest version
Current behavior 😯
When I click on a column header to perform server side sorting/ordering, the column headers shift to left and become unaligned with their respective columns.
Even some of the column headers leave the DataGrid component and go left off of it. You can notice that the first time I clicked on it, it didn't misalign but the second time when I scrolled and came back to it, it did this unexpected behaviour.
This is not a consistent bug. I also notice that columns headers sometimes are delayed(little behind/ahead than their respective column) when I scroll left-right. I don't know if that's noticeable in the video attached but it feels like it when viewed live in the browser.
I have also noticed that after we reach this stage(unaligned as shown in the video) if you again scroll left-right, it sometimes resets the column header and they realign correctly with their respective columns.
Screen.Recording.2022-02-22.at.4.20.43.PM.mov
Expected behavior 🤔
The column header to stay aligned with their respective columns when I perform server side ordering/sorting when I click on it.
Steps to reproduce 🕹
I don't have steps to reproduce at the moment but I will try to create one ASAP. Right now I have this screen recording.
I have done the usual stuff, define columns, and do some server side pagination and sorting. It's official work so i can't share the code snippet, hence I will try to recreate this bug in a codesanbox or something when I can.
Context 🔦
No response
Your environment 🌎
`npx @mui/envinfo`
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: