🐛 Fix artboard title wasn't move when resizing

This commit is contained in:
alonso.torres 2021-03-29 18:54:26 +02:00 committed by Andrey Antukh
parent 3ebc94ab8e
commit ed893b995d
2 changed files with 2 additions and 1 deletions

View file

@ -87,7 +87,7 @@
(mf/defc frame-title
[{:keys [frame modifiers selected? zoom on-frame-enter on-frame-leave on-frame-select]}]
(let [{:keys [width x y]} frame
(let [{:keys [width x y]} (gsh/transform-shape frame)
label-pos (gpt/point x (- y (/ 10 zoom)))
on-mouse-down