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

sticky-top class causes container to jump to right #27087

Closed
VDWWD opened this issue Aug 17, 2018 · 1 comment
Closed

sticky-top class causes container to jump to right #27087

VDWWD opened this issue Aug 17, 2018 · 1 comment

Comments

@VDWWD
Copy link

VDWWD commented Aug 17, 2018

When the "sticky-top" class is added to a "container" class, it causes the element to jump to right 17 px when a modal is opened AND the page is larger that the viewport (scrollbar is vilible). It does work correctly if the element does not have the "container" class.

<div class="container sticky-top"> // jumps to right

<div class="sticky-top"> // works fine, but is full width

Using V4.1.3

Tested it with an example from https://getbootstrap.com/docs/4.1/examples/ to make sure it was not some CSS of my own that was causing the problem.

@mdo
Copy link
Member

mdo commented Aug 18, 2018

Duplicate of #27071.

@mdo mdo closed this as completed Aug 18, 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

No branches or pull requests

2 participants