-
-
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] renderCell position offset in case of display:flex #12543
Comments
Please provide a minimal reproduction test case with the latest version. This would help a lot 👷. A live example would be perfect. You can find a examples and guides on how to find templates in our docs with which you can provide examples for your specific use-case: Support - Bug reproduction. Thank you! 🙇🏼 |
https://stackblitz.com/edit/react-x1ksay?file=Demo.tsx
|
You need to change the props on the rendered Stack for this to work. It did not take up the full cell height and did not align the items:
This will fix it! |
Thank you, it works fine. But what I mean is that for the method of |
Yes, I do agree that this might happen. |
related issue #12642 |
As per our migration guide:
This should fix it: {
field: 'category',
headerName: 'Category',
width: 400,
+ display: 'flex',
renderCell: (params) => { Working demo: https://stackblitz.com/edit/react-x1ksay-ppjmgk?file=Demo.tsx |
@Birddle: 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. |
Thanks for pointing out the migration guiden @cherniavskii ... I must have overlooked this. :/ |
Steps to reproduce
Link to live example: (required)
Whether it's a
<Box>
or a<Stack>
, as long as it's a component in the flex state, it will reach the top of the cell when it's custom rendered.Steps:
1.
2.
3.
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
npx @mui/envinfo
Search keywords: rendercell
The text was updated successfully, but these errors were encountered: