Skip to content

Commit

Permalink
[DataGrid] Allow overflowing grid root element (#9179)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii authored Jun 5, 2023
1 parent 6769b27 commit f69cd08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ export const GridRootStyles = styled('div', {
outline: 'none',
height: '100%',
display: 'flex',
overflow: 'hidden',
minWidth: 0, // See https://github.com/mui/mui-x/issues/8547
minHeight: 0,
flexDirection: 'column',
overflowAnchor: 'none', // Keep the same scrolling position
[`&.${gridClasses.autoHeight}`]: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ describe('<DataGrid /> - Layout & Warnings', () => {
expect(NoRowsOverlay.callCount).not.to.equal(0);
});

describe('sould not overflow parent', () => {
describe('should not overflow parent', () => {
before(function beforeHook() {
if (/jsdom/.test(window.navigator.userAgent)) {
this.skip(); // Doesn't work with mocked window.getComputedStyle
Expand Down

0 comments on commit f69cd08

Please sign in to comment.