-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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 scrolls down the page #27176
Comments
I can't reproduce with Firefox on Windows 10. |
I wasn't able to reproduce it on macOS High Sierra with Firefox 61 (thanks to BrowserStack 😄) |
Maybe try Chrome canary/beta etc and if it still happens then might be a good idea reporting it. |
Confirmed in latest Canary build (Version 71.0.3556.1 (Official Build) canary-dcheck (32-bit)) that it still happens. |
When a scrollbar is present modal adds padding the size of the scrollbar (~15px), every browser is happy to oblige except Chrome... Measurements are also correct between Chrome Canary/FireFox Lines 454 to 458 in 0350858
I went ahead and removed the dynamic padding added for testing purposes and in fact Chrome is happy with Still looking... |
The occurrence condition is not clear, but when open a modal, the page may scroll down. It appears to be affected by the window size or length of the page. Often it happens when the window size is small, it may occur even when the window is wide.
Windows 10 / macOS (Show scroll bars - always)
https://getbootstrap.com/docs/4.1/components/modal/
The text was updated successfully, but these errors were encountered: