mirror of
https://github.com/penpot/penpot.git
synced 2025-06-08 15:51:37 +02: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
|
(defn- get-position
|
||||||
[{:keys [page width] :as shape}]
|
[{: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)
|
vx (+ x width 50)
|
||||||
vy (- y 50)]
|
vy (- y 50)]
|
||||||
(viewportcoord->clientcoord page vx vy)))
|
(viewportcoord->clientcoord page vx vy)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue