Skip to content

Commit

Permalink
Fixes modal positioning on android (#26760)
Browse files Browse the repository at this point in the history
When address bar is hidden, sometimes the visual position of the controls is out of sync with its logical position.
  • Loading branch information
jvitela authored and XhmikosR committed Nov 4, 2018
1 parent c46a0c7 commit fbffdc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scss/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
.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.
Expand Down Expand Up @@ -84,10 +84,10 @@
.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
Expand Down

0 comments on commit fbffdc1

Please sign in to comment.