【发布时间】:2018-05-21 17:39:57
【问题描述】:
我将使用具有自定义宽度的 Dialog 的 Material-UI 示例:
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>
我知道我可以设置自定义宽度,因为我已经覆盖了maxWidth,但是我希望能够对高度执行相同的操作,以便调整对话框的高度。我尝试将maxHeight 设置为none 并设置height,但没有成功。
【问题讨论】:
标签: reactjs material-ui