Skip to content

Commit

Permalink
Fixing Broken Scrolling in Full Screen Dilouge Box
Browse files Browse the repository at this point in the history
  • Loading branch information
LuseBiswas committed Sep 5, 2024
1 parent 2ad38e3 commit 285afa8
Showing 1 changed file with 3 additions and 0 deletions.
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
'@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
borderRadius: 0,
[`&.${dialogClasses.paperScrollBody}`]: {
margin: 0,
maxWidth: '100%',
overflow: 'auto', // Fix: Ensure overflow is handled properly
},
},
},
Expand Down

0 comments on commit 285afa8

Please sign in to comment.