diff options
| author | Shohei Yoshida <[email protected]> | 2020-02-29 16:59:36 +0900 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-03-09 16:08:41 +0200 |
| commit | fa7510c6afc089ec2fa585789baabc3e3699a6dd (patch) | |
| tree | 3fc1aea89b0fa6f7dd98fa2bcb79dab77d5018f0 | |
| parent | 69f36286f97018adc59e5d2ed64d7ea28dd9b5dc (diff) | |
| download | bootstrap-fa7510c6afc089ec2fa585789baabc3e3699a6dd.tar.xz bootstrap-fa7510c6afc089ec2fa585789baabc3e3699a6dd.zip | |
Fix centered modal scrolling issue (#30244)
Use the `min-content` property.
| -rw-r--r-- | scss/_modal.scss | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scss/_modal.scss b/scss/_modal.scss index 9053c173f..a6d0f0651 100644 --- a/scss/_modal.scss +++ b/scss/_modal.scss @@ -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: ""; } @@ -217,6 +218,7 @@ &::before { height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2); + height: min-content; } } |
