🐛 Fix problem with overflow dropdown on stroke-cap

This commit is contained in:
alonso.torres 2021-10-04 16:49:28 +02:00
parent 0159eea526
commit 1a61c855ca
3 changed files with 9 additions and 3 deletions

View file

@ -141,7 +141,10 @@
target (dom/get-current-target event)
rect (dom/get-bounding-rect target)
top (+ (:bottom rect) 5)
top (if (< (+ (:bottom rect) 320) (:height window-size))
(+ (:bottom rect) 5)
(- (:height window-size) 325))
left (if (< (+ (:left rect) 200) (:width window-size))
(:left rect)
(- (:width window-size) 205))]