-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Column with flex=1 generates a new column #15489
Comments
Hey @DanielaDark ... your codesandbox is set to private. Could you change the permission on it so we can have a look at that as well? Thanks! 🙇🏼 |
@michelengelen, sorry my bad. Now it should be public. |
Hey @DanielaDark ... it's not showing that extra cell for me: |
Hey @michelengelen, I really don't know, why it is not displayed for you. I checked the Link in Edge, Chrome and Firefox. My colleges checked it. We all have the extra cell in display. |
I just tried again with the latest grid version and there it works. |
The problem in depth
Link to Sandbox
Please see sandbox for specific implementation. In short: we use the DataGrid without column headers and only with 1 Column. The column:
The container where DataGridPremium is embedded has no set height (for example a MUI Popover).
Expected behavior:
DataGrid is displayed correctly. When elements are expanded, container grows in height, when elements are collapsed - container shrinks. No extra Cells are displayed.
Actual behavior
An extra cell is added in each row thought flex=1 property is set.
Note: The extra cell disappears when container is given a height Property (for example in demo.tsx line 174)
Motivation: I wanted to use the Grid Component in a Popover, which has flexible height based on the contents.
Your environment
`npx @mui/envinfo`
Search keywords: DataGrid width
Order ID: 99555
The text was updated successfully, but these errors were encountered: