I have a custom sized (80% height width) bootstrap modal body and it scrolls (body content will overflow on some sized screens)
There are 2 problems:
- I can’t set the max-height to 100% as that will be 100% of the entire document instead of the max height of the container, which is what i need for scrolling to work properly.
- If there is a div with a fixed height inside the modal body at the very end, it will overflow outside of the modal if the screen is not big enough for the content.
How would I fix this? I’m currently experimenting with negative margins but i’m not too familiar with it.
JavaScript solutions are acceptable (jQuery is available as is backbone.js)
Thanks
Edit: Screenshot provided

Edit 2: More screenshot

I caved in and wrote coffeescript to fix this. If anyone’s interested, here’s the coffeescript:
Or the equivalent javascript as generated per above.