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

Modal: Content moves to the right #9886

Closed
Merg1255 opened this issue Aug 19, 2013 · 4 comments
Closed

Modal: Content moves to the right #9886

Merg1255 opened this issue Aug 19, 2013 · 4 comments
Labels

Comments

@Merg1255
Copy link

http://oi41.tinypic.com/2s0e05x.jpg

This is on v3 final, Win FF23.
Even with a normal sized modal, the page content moves a few pixels on the right of the page.

@its-sarin
Copy link

For some reason, body.modal-open sets margin-right to 15px. I removed that 'body.modal-open' from bootstrap.css to remedy this.

@cvrebert
Copy link
Collaborator

Closing in favor of #9855.

@sirNemanjapro
Copy link

+1

@shahard
Copy link

shahard commented Nov 6, 2014

I'm loading the default bootstrap 3.3.0 CSS and had a similar problem.
Solved by adding this CSS:
body.modal-open { overflow:inherit; padding-right:inherit !important; }

The !important is because bootstrap modal javascript adds 17px of padding to the right programatically. My guess is that it's to compensate for the scrollbar, but I do not want that.

@twbs twbs locked and limited conversation to collaborators Nov 6, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants