-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modal windows are not scrollable #849
Comments
Try to use a max-height for the modal window and set the overflow to auto. That should help you as a work around. |
Thanks for the incredibly quick reply! ✨❤️✨ That workaround solves the problem, but IMHO this should be the default behavior in Bootstrap. I'll work on a patch that implements this in the default stylesheet. |
u can add a new attribute data-static="true" in the HTML in JS add (inside show function) var position_static = that.$element.data('static') || false position_static ? css: .modal.static { this way you can scroll the page and have a modal bigger then the window |
I'm trying to display the "Terms of Service" for a website in a Bootstrap modal box. The length of the Terms stretch the container to be larger than the size of the viewport. At this point, I'd expect the modal box to become scrollable, but instead, it hides the overflown content. Since it's easier to show than to tell, I've attached a screenshot that demonstrates the issue. Let me know if there's any additional information I can provide to help debug. Here's the full code for the project: https://github.com/codeforamerica/adopt-a-hydrant/tree/bootstrap
The text was updated successfully, but these errors were encountered: