.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.
.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.