Explorar o código

fix: scroll overflow of absolute modal

charlie %!s(int64=5) %!d(string=hai) anos
pai
achega
67e268ef8f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/frontend/components/editor.cljs

+ 1 - 1
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))