Updating Bootstrap 3 changes the user interface when the Bootstrap dialog box opens or closes. How can I get rid of this behavior?

I noticed that when the bootstrap dialog box opens, the body html tag gets the following css.

<body class="modal-open" style="padding-right: 17px;"> 

I think this makes the user interface tremble. How can I get rid of this strange behavior. I created a violin. But this problem is not produced. But in my local environment, I can reproduce this. Jsfiddle

+6
source share
2 answers

Just add this to your css:

 .modal-open { padding-right: 0px !important; } 
+2
source

I fixed the problem with

 body.modal-open { padding-right: 0px !important; overflow-y: auto; } 
+1
source

Source: https://habr.com/ru/post/985040/


All Articles