Skip to content

Conversation

cornernote
Copy link

Puts the overflow: hidden; onto the html element instead of the body.

@cornernote
Copy link
Author

NOTE: this only fixes it when the page has enough content that it requires a scrollbar, it causes jerking if the content all fits onto a single page... not sure what to do here...

@cornernote
Copy link
Author

I found a different method to solve this, seems to work no matter if the page already has overflowing content or not...

body {
    margin: 0 !important;
}
.modal-open {
    overflow: visible !important;
}

It's based on a fix for fancybox2:
http://stackoverflow.com/questions/14387524/fancybox-2-scrollbar-disapears-and-site-shifts-to-the-right

May want to add something to the docs about this, apart from that this issue can be closed.

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

Successfully merging this pull request may close these issues.

1 participant