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:
parent
bdb0738a1b
commit
08d9dc556b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue