simplemodal
simplemodal copied to clipboard
Use outerHeight and account for padding, margins, border
.simplemodal-container is the same height as simplemodal-wrap, but that means that if the CSS applies margin, borders or padding and you have long content that scrolls, the modal is bigger than the window.
So the height should be window height - (margin + border + padding)
As a simple check, outerHeight should be <= window height.
er... sorry outerHeight(true) should be <= window height