0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-06 04:08:22 +01:00

Merge pull request #13785 from twbs/fat-13609

fixes 13609 - Modal is shifting left just before the hiding animation
This commit is contained in:
Mark Otto 2014-06-10 19:21:03 -07:00
commit 2fb31318d6

View File

@ -15,8 +15,7 @@
// Container that the modal scrolls within // Container that the modal scrolls within
.modal { .modal {
display: none; display: none;
overflow: auto; overflow: hidden;
overflow-y: scroll;
position: fixed; position: fixed;
top: 0; top: 0;
right: 0; right: 0;
@ -36,6 +35,10 @@
} }
&.in .modal-dialog { .translate3d(0, 0, 0) } &.in .modal-dialog { .translate3d(0, 0, 0) }
} }
.modal-open .modal {
overflow-x: hidden;
overflow-y: auto;
}
// Shell div to position the modal with bottom padding // Shell div to position the modal with bottom padding
.modal-dialog { .modal-dialog {