Navigation Menu

Skip to content
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

Set a maximum height for modal dialogs. #2523

Merged
merged 1 commit into from Dec 15, 2017
Merged

Conversation

manthey
Copy link
Member

@manthey manthey commented Dec 14, 2017

Currently, if a modal dialog is tall, the webpage as a whole gets a scrollbar and the dialog extends past the bottom. I think it looks better to have the dialog have a scroll bar (since the page may already be scrolled). The bootstrap css has different margins depending on window size; this makes one policy that is consistent.

This has the virtue that scrolling within the dialog doesn't affect the scroll position on the underlying main page.

Currently, if a modal dialog is tall, the webpage as a whole gets a
scrollbar and the dialog extends past the bottom.  I think it looks
better to have the dialog have a scroll bar (since the page may already
be scrolled).  The bootstrap css has different margins depending on
window size; this makes one policy that is consistent.
@jbeezley
Copy link
Contributor

I've done this in other girder-based applications and found it to work well. I'll let it sit for a while before approving.

@manthey manthey merged commit b11376b into master Dec 15, 2017
@manthey manthey deleted the modal-dialog-max-height branch December 15, 2017 13:15
@mgrauer mgrauer mentioned this pull request Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants