Skip to content
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

[material-ui][Dialog] Fix broken scrolling in full screen mode #43626

Merged
merged 9 commits into from
Sep 7, 2024
3 changes: 3 additions & 0 deletions packages/mui-material/src/Dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const DialogPaper = styled(Paper, {
memoTheme(({ theme }) => ({
margin: 32,
position: 'relative',
overflow: 'auto', // Ensure scrolling by default
DiegoAndai marked this conversation as resolved.
Show resolved Hide resolved
'@media print': {
overflowY: 'visible',
boxShadow: 'none',
Expand Down Expand Up @@ -192,10 +193,12 @@ const DialogPaper = styled(Paper, {
maxWidth: '100%',
height: '100%',
maxHeight: 'none',
overflow: 'auto', // Fix: Add scrolling for full-screen dialog
DiegoAndai marked this conversation as resolved.
Show resolved Hide resolved
borderRadius: 0,
[`&.${dialogClasses.paperScrollBody}`]: {
margin: 0,
maxWidth: '100%',
overflow: 'auto', // Fix: Ensure overflow is handled properly
DiegoAndai marked this conversation as resolved.
Show resolved Hide resolved
},
},
},
Expand Down
Loading