I'm going with the Material-UI example for a Dialog
with a custom width:
const customContentStyle = {
width: '100%',
maxWidth: 'none',
};
// some omitted code
<Dialog
title="Dialog With Custom Width"
actions={actions}
modal={true}
contentStyle={customContentStyle}
open={this.state.open}
>
This dialog spans the entire width of the screen.
</Dialog>
I know that I'm able to set a custom width because I've overridden the maxWidth
, however I want to be able to do the same with the height so that I can resize the height of the dialog. I've tried setting the maxHeight
to none
and setting height
, but I've had no luck with it.