From 67e268ef8f3847a250429836df1a5000de6dd6a1 Mon Sep 17 00:00:00 2001 From: charlie Date: Fri, 18 Dec 2020 14:54:32 +0800 Subject: [PATCH] fix: scroll overflow of absolute modal --- src/main/frontend/components/editor.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/components/editor.cljs b/src/main/frontend/components/editor.cljs index 399273eb0..4871dcc22 100644 --- a/src/main/frontend/components/editor.cljs +++ b/src/main/frontend/components/editor.cljs @@ -320,7 +320,7 @@ to-max-height (if (and (seq rect) (> vw-height max-height)) (let [delta-height (- vw-height (+ (:top rect) top offset-top))] (if (< delta-height max-height) - delta-height + (- (max (* 2 offset-top) delta-height) 16) max-height)) max-height) x-overflow? (if (and (seq rect) (> vw-width max-width))