Skip to content

Commit

Permalink
[Grid] fix: x-scrollbar was showing, closes this issue mui#24272
Browse files Browse the repository at this point in the history
Co-authored-by: povilass <povilas810@gmail.com>
  • Loading branch information
greguintow and povilass committed Jan 9, 2021
1 parent 1d5eae9 commit 3f9d139
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/material-ui/src/Grid/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ function generateGutter(theme, breakpoint) {
}

styles[`spacing-${breakpoint}-${spacing}`] = {
margin: `-${getOffset(themeSpacing, 2)}`,
marginTop: `-${getOffset(themeSpacing)}`,
marginLeft: `-${getOffset(themeSpacing)}`,
width: `calc(100% + ${getOffset(themeSpacing)})`,
'& > $item': {
padding: getOffset(themeSpacing, 2),
paddingTop: getOffset(themeSpacing),
paddingLeft: getOffset(themeSpacing),
},
};
});
Expand Down

0 comments on commit 3f9d139

Please sign in to comment.