Skip to content

Commit

Permalink
Fix centered modal scrolling issue (#30244)
Browse files Browse the repository at this point in the history
Use the `min-content` property.
  • Loading branch information
ysds committed Feb 29, 2020
1 parent ad8fd9e commit 40ac139
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scss/_modal.scss
Expand Up @@ -83,6 +83,7 @@
&::before {
display: block; // IE10
height: subtract(100vh, $modal-dialog-margin * 2);
height: min-content; // Reset height to 0 except on IE
content: "";
}

Expand Down Expand Up @@ -216,6 +217,7 @@

&::before {
height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2);
height: min-content;
}
}

Expand Down

0 comments on commit 40ac139

Please sign in to comment.