-
-
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
[data grid] Multiple lines/children in renderCell doesn't work #2859
Comments
Hi, @venik2007 thanks for raising this. It seems to be a duplicate of #417 and/or #438 You can also check here https://mui.com/components/data-grid/columns/#render-cell for a different approach. |
Hi @DanailH, i'm afraid, this is not duplication, because of:
And i'm already provide a workaround hot to solve that (see screenshot with disabled The problem is that i can't override that value even locally to fix it for my project |
I found workaround which works for me! |
Ok, this must-have slipped through the notifications. I see what the pain is now, thanks for explaining. The problem is how we center the text. |
Current behavior 😯
Multiple lines/children in cell doesn't work for v5 (example of solution on stackoverflow works fine for v4, but not for v5);
Expected behavior 🤔
Multiple lines/children in cell works well
Steps to reproduce 🕹
Steps:
Devtools
disablinglineHeight
solve this issue, but I can't find any workarounds to do it through the code (probably it assigned/calculated by scripts, mui devs knows better)Context 🔦
This issue blocks me. I need to render array of elements in a cell (with my own component with scroller); example of structure:
And I need to show that metrics array for each entity (row) in a single cell
Your environment 🌎
`npx @mui/envinfo`
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: