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

Tall modal scroll fix #104

Merged
merged 3 commits into from
Feb 13, 2015
Merged

Tall modal scroll fix #104

merged 3 commits into from
Feb 13, 2015

Conversation

trhoppe
Copy link
Contributor

@trhoppe trhoppe commented Feb 9, 2015

Added this on top of my other PR. Let me know you think. This adds a full width/height content wrap around vex-content to allow the mouse wheel to scroll a long modal, no matter where the cursor is. Also, the click event gets added to the wrap as well as the overlay, so clicking off the content closes the modal. Seems to work well in my testing so far.

@trhoppe
Copy link
Contributor Author

trhoppe commented Feb 9, 2015

This was the only way I could see of handing this, while keeping the overlay position:fixed. If you move the overlay to position:absolute, you don't need the wrapper, but then you need to keep the overlay height dynamic via JS (how Bootstrap does it) and I don't like that. The way you have it now is nice and flexible if someone appends extra modal content

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.

2 participants