Trick to force a vertical scrollbar in dialogs (needed when the virtual keyboard hides a field).

This commit is contained in:
vdv committed 2023-01-06 16:41:11 +01:00
1 parent 040c0271d7
commit 516d09e3c6
1 file changed
+7 -1
+7 -1
View File
@@ -7,6 +7,7 @@ import {
IconButton,
} from '@suid/material';
import CloseIcon from '@suid/icons-material/Close';
import { debounce } from 'lodash';
const Dialog: Component<{
open: boolean;
@@ -36,7 +37,12 @@ const Dialog: Component<{
</IconButton>
{props.title}
</DialogTitle>
<DialogContent sx={{ width: 'calc(100% - 60px)' }}>
<DialogContent
sx={{
width: 'calc(100% - 60px)',
paddingBottom: '2000px',
}}
>
{props.children}
</DialogContent>
</MuiDialog>