fix: scroll overflow of absolute modal

pull/934/head
charlie 2020-12-18 14:54:32 +08:00
parent f3d26d2da7
commit 67e268ef8f
1 changed files with 1 additions and 1 deletions

View File

@ -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))