mirror of
https://github.com/penpot/penpot.git
synced 2026-09-09 13:39:02 +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
|
(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…
x
Reference in New Issue
Block a user