-
-
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
[core] Clean up "autoHeight" logic #16017
base: master
Are you sure you want to change the base?
[core] Clean up "autoHeight" logic #16017
Conversation
37b5a5e
to
92626e4
Compare
Deploy preview: https://deploy-preview-16017--material-ui-x.netlify.app/ |
fdd7fce
to
ddf58d3
Compare
ddf58d3
to
0da9c23
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -389,6 +389,7 @@ describe('<DataGridPro /> - Detail panel', () => { | |||
const getDetailPanelHeight = spy(() => 100); | |||
const { setProps } = render( | |||
<TestCase | |||
autoHeight |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should also be removed, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the tests failed. I tried to remove as many as I could.
A continuation of #14614.
http://0.0.0.0:3000/material-ui/getting-started/templates/dashboard/ uses this
autoHeight
deprecated prop, but there is no warning in the console. I found this by chance. I would have found this instantly it it was in the console.I have tried to add:
but there are a couple of tests that fail. Overall, I'm not sure that we can remove the
autoHeight
prop:For example: https://mui.com/x/react-data-grid/layout/#flex-parent-container
Screen.Recording.2024-12-28.at.18.26.32.mov
I suspect it's what the failing tests are about when removing
autoHeight
: https://app.circleci.com/pipelines/github/mui/mui-x/76597/workflows/92dfe153-bf52-47c1-9ddc-4df5357a69f6/jobs/435999 and https://app.circleci.com/pipelines/github/mui/mui-x/76597/workflows/92dfe153-bf52-47c1-9ddc-4df5357a69f6/jobs/436000.