Skip to content
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] Cell's content overflown when row height is auto #12842

Closed
ithrforu opened this issue Apr 19, 2024 · 4 comments
Closed

[data grid] Cell's content overflown when row height is auto #12842

ithrforu opened this issue Apr 19, 2024 · 4 comments
Labels
component: data grid This is the name of the generic UI component, not the React module!

Comments

@ithrforu
Copy link
Contributor

ithrforu commented Apr 19, 2024

Steps to reproduce

Link to live example: (required)
Codesandbox.

Steps:

  1. Narrow the "rating" column.
  2. Toggle "Change auto height mode" button.

Current behavior

  1. When row height auto is false MuDatGrid-Cell have properties:
overflow: hidden;
white-space: no-wrap;

image
2. When row height auto is true MuDatGrid-Cell does not have these properties and cell's content overflows the cell:
image

Expected behavior

When row height auto is true MuDatGrid-Cell should use overflow: hidden;.

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: rowHeight, rowHeight="auto", overflow, cell overflow, MuDatGrid-Cell
Order ID: 58079

@ithrforu ithrforu added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 19, 2024
@michelengelen michelengelen changed the title Cell's content overflown when row height is auto [data grid] Cell's content overflown when row height is auto Apr 19, 2024
@michelengelen
Copy link
Member

Hey @ithrforu,
I cannot reproduce this issue. The grid in your example works just as expected:

Screen.Recording.2024-04-19.at.11.45.40.mov

Which browser are you using and did you try this in a different browser?

@michelengelen michelengelen added component: data grid This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Apr 19, 2024
@ithrforu
Copy link
Contributor Author

ithrforu commented Apr 19, 2024

Hey, @michelengelen.

The bug is reproduced in 6.19.6 (codesandbox) and it is ok on the latest version (fixed in 7.2.0).

You can close the issue, thank you!

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Apr 19, 2024
@michelengelen
Copy link
Member

Thanks for the confirmation! 👍🏻

@michelengelen michelengelen removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 19, 2024
@michelengelen michelengelen closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2024
Copy link

⚠️ This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

@ithrforu: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

2 participants