-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[DataGrid] Support minHeight
and maxHeight
on flex parent container
#14614
Conversation
Deploy preview: https://deploy-preview-14614--material-ui-x.netlify.app/ Updated pages: |
function ContainerMeasurements({ containerRef }) { | ||
const [containerHeight, setContainerHeight] = React.useState(0); | ||
|
||
useResizeObserver(containerRef, (entries) => { |
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.
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.
Fixed by 14cbefa
(#14614)
Fixed by 6a9c2fa
(#14614)
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.
Small issue with the scrollbar on chrome/linux (which usually behaves like chrome/windows):
Screencast.from.2024-09-18.17-48-40.webm
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.
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.
It only happens when the zoom is not 100%.
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.
Ah, with non-100% zoom, I can reproduce this on MacOS as well 👍🏻
Will look into it!
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.
Fixed, and the fix also solves another issue that I didn't notice before: #14614 (comment)
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.
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.
I don't think so, I can reproduce the issue with both 7.19.0 and 7.18.0 (before this PR was merged)
packages/x-data-grid/src/components/virtualization/GridBottomContainer.tsx
Outdated
Show resolved
Hide resolved
This reverts commit 14cbefa.
…er (mui#14614) Co-authored-by: Rom Grk <[email protected]>
Closes #3524
Closes #7588
Closes #9178
Closes #9274
Preview:
TODO
autoHeight
prop?