From 34ef3f6e7b0e82bd8c51264accc2f4a19d74d7cf Mon Sep 17 00:00:00 2001 From: Catouse Date: Thu, 28 Nov 2019 09:33:41 +0800 Subject: [PATCH] * fix scrollInside option not work as expected in modal. --- src/js/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/modal.js b/src/js/modal.js index 979d2683c..470256b3b 100644 --- a/src/js/modal.js +++ b/src/js/modal.js @@ -96,7 +96,7 @@ headerHeight = headerHeight($header); } bodyCss.maxHeight = winHeight - headerHeight; - bodyCss.overflow = $body.outerHeight() > bodyCss.maxHeight ? 'auto' : 'visible'; + bodyCss.overflow = $body[0].scrollHeight > bodyCss.maxHeight ? 'auto' : 'visible'; } $body.css(bodyCss); -- GitLab