0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 10:38:13 -05:00

🐛 Fix unexpected text positioning

This commit is contained in:
Andrey Antukh 2022-07-27 15:28:50 +02:00
parent 7f611c89e1
commit 8285cb8f62

View file

@ -93,9 +93,7 @@
rtl? (= "rtl" (:direction data))
props (-> #js {:key (dm/str "text-" (:id shape) "-" index)
:x (if rtl? (+ (:x data) (:width data)) (:x data))
:y (if (cf/check-browser? :safari)
(- (:y data) (:height data))
(:y data))
:y (- (:y data) (:height data))
:transform (position-data-transform shape data)
:alignmentBaseline alignment-bl
:dominantBaseline dominant-bl