You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that specifying columnSpacing="16px" produces extra space on left.
Current behavior
When specifying columnSpacing on Grid using pixels, there's extra space to the left of the grid items.
Note: Locally in development, but not on stackblitz, I can see margin-left: NaNpx on <div class="MuiGrid-root MuiGrid-container">.
Expected behavior
No extra space.
Context
We recently updated MUI from v5 to v6.1.6. I have just noticed this behavior and believe it is a regression. (Edit: I've added a corresponding stackblitz demo for v5)
I understand that Grid2 is preferred now, however we have not had a chance to update all the Grid components yet.
Your environment
npx @mui/envinfo
Using Chrome. Note: This envinfo is for my local, not Stackblitz
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.
Steps to reproduce
Link to live example: (required)
Steps:
columnSpacing="16px"
produces extra space on left.Current behavior
When specifying
columnSpacing
onGrid
using pixels, there's extra space to the left of the grid items.Note: Locally in development, but not on stackblitz, I can see
margin-left: NaNpx
on<div class="MuiGrid-root MuiGrid-container">
.Expected behavior
No extra space.
Context
We recently updated MUI from v5 to v6.1.6. I have just noticed this behavior and believe it is a regression. (Edit: I've added a corresponding stackblitz demo for v5)
I understand that
Grid2
is preferred now, however we have not had a chance to update all the Grid components yet.Your environment
npx @mui/envinfo
Using Chrome. Note: This envinfo is for my local, not Stackblitz
Search keywords: grid, spacing, nan, negative
The text was updated successfully, but these errors were encountered: