]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix modal positioning on Android.
authorjvitela <j.vitel@gmail.com>
Fri, 6 Jul 2018 08:09:22 +0000 (11:09 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Sun, 11 Nov 2018 08:44:26 +0000 (10:44 +0200)
When the address bar is hidden, sometimes the visual position of the controls is out of sync with its logical position.

scss/_modal.scss

index fa76b0ea56495d80dcb8b43265f2cd5c5db62bd8..65b61d90c29778760db72f32a1d50063e1a9adf7 100644 (file)
 .modal {
   position: fixed;
   top: 0;
-  right: 0;
-  bottom: 0;
   left: 0;
   z-index: $zindex-modal;
   display: none;
+  width: 100%;
+  height: 100%;
   overflow: hidden;
   // Prevent Chrome on Windows from adding a focus outline. For details, see
   // https://github.com/twbs/bootstrap/pull/10951.
 .modal-backdrop {
   position: fixed;
   top: 0;
-  right: 0;
-  bottom: 0;
   left: 0;
   z-index: $zindex-modal-backdrop;
+  width: 100vw;
+  height: 100vh;
   background-color: $modal-backdrop-bg;
 
   // Fade for backdrop