aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-06-10 19:21:03 -0700
committerMark Otto <[email protected]>2014-06-10 19:21:03 -0700
commit2fb31318d602c79978fa3493e246b3b53263d052 (patch)
tree64a799e6d7acc12739de96c30cf02e7e6cfe28f0
parent9cdbf0e80702b9a6a772a2d4a81d8d94dbe1c0eb (diff)
parentfd0a81a57ab9976a0c6a423498c0405357c7816c (diff)
downloadbootstrap-2fb31318d602c79978fa3493e246b3b53263d052.tar.xz
bootstrap-2fb31318d602c79978fa3493e246b3b53263d052.zip
Merge pull request #13785 from twbs/fat-13609
fixes 13609 - Modal is shifting left just before the hiding animation
-rw-r--r--less/modals.less7
1 files changed, 5 insertions, 2 deletions
diff --git a/less/modals.less b/less/modals.less
index abf46cce8..6da50ba92 100644
--- a/less/modals.less
+++ b/less/modals.less
@@ -15,8 +15,7 @@
// Container that the modal scrolls within
.modal {
display: none;
- overflow: auto;
- overflow-y: scroll;
+ overflow: hidden;
position: fixed;
top: 0;
right: 0;
@@ -36,6 +35,10 @@
}
&.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
.modal-dialog {