-
-
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
v4 navbar-fixed-top and modal-open padding-right content issue #18366
Comments
I can't replicate, can you see how this is different? |
I can reproduce some slight shifting within the iframe in the Codeply editor, but this doesn't reproduce when the page is top-level (i.e. not within an iframe). |
This stops reproducing when I disable all the bullshit |
@iatek Also FYI there seem to be some "srollbar" typos in the editor CSS. |
Ok, I can reproduce with http://plnkr.co/edit/3lfONeCUI7IsWTehp9pZ?p=preview after disabling autohiding scrollbars in OS X. |
I suspect this is a duplicate of #14040, modulo the version. |
`${bodyPadding + this._scrollbarWidth}px` ought to use |
@cvrebert Your example works as intended on FF/Edge. Could this be Safari/OSX specific? |
Perhaps. I only tested on OS X; it reproduces there in Chrome, Firefox, and Safari. |
The Planker example works properly on iOS/Safari, will also check on my mac later. |
The distance of the shift of content to the left that I observed in my example was small (~25px), not in the range of hundreds of px like OP said. |
If you read the issue description you will realize this isn't the case. On the codeply example the content collapsed all the way to the left, not just a few pixels. I believe it's a problem with codeply, not bootstrap. The minor shift is a known issue, irrelevant to this one. IMO closure is in order. |
Closing as probable duplicate of #17399. |
Opened #18373 to track the "content shifts only slightly to the left" bug. |
In v4, when using a fixed navbar, content gets pushed to the far left when a modal is opened. It occurs when the body content extends beyond the viewport (vertical scrollbar), and is caused by the
padding-right: 1617px;
that's being added the body.Perhaps the _isBodyOverflowing && isModalOverflowing test in
modal.js
needs to compensate for the fixed navbar?http://codeply.com/go/W1PphRIdfs
The text was updated successfully, but these errors were encountered: