From c140347bd26851c79e76766ae381e91c159b3f48 Mon Sep 17 00:00:00 2001 From: Shohei Yoshida Date: Thu, 25 Jun 2020 15:43:19 +0900 Subject: [PATCH] Fix scrollable modal (#31151) Co-authored-by: XhmikosR --- scss/_modal.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scss/_modal.scss b/scss/_modal.scss index 44519724e5..5443ef124d 100644 --- a/scss/_modal.scss +++ b/scss/_modal.scss @@ -56,9 +56,10 @@ } .modal-dialog-scrollable { - max-height: subtract(100%, $modal-dialog-margin * 2); + height: subtract(100%, $modal-dialog-margin * 2); .modal-content { + max-height: 100%; overflow: hidden; } @@ -177,7 +178,7 @@ } .modal-dialog-scrollable { - max-height: subtract(100%, $modal-dialog-margin-y-sm-up * 2); + height: subtract(100%, $modal-dialog-margin-y-sm-up * 2); } .modal-dialog-centered {