simplemodal icon indicating copy to clipboard operation
simplemodal copied to clipboard

Use outerHeight and account for padding, margins, border

Open ergophobe opened this issue 11 years ago • 1 comments

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

ergophobe avatar Aug 30 '13 14:08 ergophobe

er... sorry outerHeight(true) should be <= window height

ergophobe avatar Aug 30 '13 14:08 ergophobe