[data grid] Column flex width jumps after grid is displayed #13460
Labels
component: data grid
This is the name of the generic UI component, not the React module!
feature: Rendering layout
Related to the data grid Rendering engine
status: waiting for author
Issue with insufficient information
Steps to reproduce
Link to live example: Example
Steps:
layerCount
(last) columnCurrent behavior
There is a subtle jump in the last column if the previous columns use
flex
.Recorded video (loom): Video
Expected behavior
There is no jump
Context
I have a DataGrid with multiple columns of varying widths. Since I do not know in advance how wide the content of each cell will be, I set the flex property to 1 or 2, allowing the DataGrid to automatically calculate the widths. However, I know that the last column should have no flex and should be positioned at the very right end of the table. I would like to remove or at least minimize the subtle jump of the last column. Is there anything I can do to achieve this?
Your environment
npx @mui/envinfo
Search keywords: datagrid, flex, column, jump
The text was updated successfully, but these errors were encountered: