-
Notifications
You must be signed in to change notification settings - Fork 487
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 styles causes document to scroll to top in Chrome #132
Comments
Thanks @mjbradford89 @pat270 this is being caused by the I can't remember why that was added. Do you happen to remember? |
Hey @natecavanaugh and @mjbradford89, those styles were added specifically for ios. Long content under the modal would be scrollable without position fixed because ios doesn't respect overflow hidden on the body. I'll find a work around. |
This can be reproduced at http://liferay.github.io/lexicon/content/modals/ and also in liferay-portal. I think this is caused by the styles from the class
modal-open
that is appended to the body.Result: The page is scrolled back to the top.
Note: It seems like for the bottom 3 buttons on the Modal demo page, the bootstrap modal component is resetting the scroll position after the modal is closed.
The text was updated successfully, but these errors were encountered: