Answer the question
In order to leave comments, you need to log in
Why does the layout shift when the modal is called?
On the site , the language change is implemented through a modal window. So when the modal opens, the entire layout shifts ~15px to the left. I can't figure out where I screwed up. Can you tell me?
Answer the question
In order to leave comments, you need to log in
bootstrap, when the modal opens, adds body padding-right according to the scroll size and overflow: hidden
so that the page under the open modal does not scroll
.modal-open {
overflow-y: auto !important;
}
It is better to fix only what has left. write down:
.modal-open ul.nav.navbar-nav.pull-right {
padding-right: 17px;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question