For a dialog over a fixed overlay, I would use the window height instead of the body, to ensure that the dialog is placed within the limits of the viewport.
The Dialog is getting these styles:
Which are obviously based on the calculations made using body.clientHeight:
I can make a pull request to fix that line if you need me to.
I can't see the Dialog opened by using the component, I think the offending line is:
https://github.com/tleunen/react-mdl/blob/master/src/Dialog/Dialog.js#L30
Which takes
body.clientHeight
into account.For a dialog over a fixed overlay, I would use the window height instead of the body, to ensure that the dialog is placed within the limits of the viewport.
The Dialog is getting these styles:
Which are obviously based on the calculations made using
body.clientHeight
:I can make a pull request to fix that line if you need me to.