mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 20:28:11 +00:00
Use proper function for calculate the options position.
This commit is contained in:
parent
bdb0738a1b
commit
08d9dc556b
@ -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)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user