From 40ac139bbe05874fb9c96ec6c453a847596dc555 Mon Sep 17 00:00:00 2001 From: Shohei Yoshida Date: Sat, 29 Feb 2020 16:59:36 +0900 Subject: [PATCH] Fix centered modal scrolling issue (#30244) Use the `min-content` property. --- scss/_modal.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scss/_modal.scss b/scss/_modal.scss index 421e3e640086..e43c70fbb4bb 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: ""; } @@ -216,6 +217,7 @@ &::before { height: subtract(100vh, $modal-dialog-margin-y-sm-up * 2); + height: min-content; } }