0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-16 01:31:22 -05:00

Use proper function for calculate the options position.

This commit is contained in:
Andrey Antukh 2016-01-25 18:33:32 +02:00
parent bdb0738a1b
commit 08d9dc556b

View file

@ -45,7 +45,7 @@
(defn- get-position
[{:keys [page width] :as shape}]
(let [{:keys [x y]} (sh/resolve-position shape)
(let [{:keys [x y]} (sh/-outer-rect shape)
vx (+ x width 50)
vy (- y 50)]
(viewportcoord->clientcoord page vx vy)))