mirror of
https://github.com/penpot/penpot.git
synced 2025-07-26 01:47:15 +02:00
🐛 Fix unexpected text positioning
This commit is contained in:
parent
7f611c89e1
commit
8285cb8f62
1 changed files with 1 additions and 3 deletions
|
@ -93,9 +93,7 @@
|
||||||
rtl? (= "rtl" (:direction data))
|
rtl? (= "rtl" (:direction data))
|
||||||
props (-> #js {:key (dm/str "text-" (:id shape) "-" index)
|
props (-> #js {:key (dm/str "text-" (:id shape) "-" index)
|
||||||
:x (if rtl? (+ (:x data) (:width data)) (:x data))
|
:x (if rtl? (+ (:x data) (:width data)) (:x data))
|
||||||
:y (if (cf/check-browser? :safari)
|
:y (- (:y data) (:height data))
|
||||||
(- (:y data) (:height data))
|
|
||||||
(:y data))
|
|
||||||
:transform (position-data-transform shape data)
|
:transform (position-data-transform shape data)
|
||||||
:alignmentBaseline alignment-bl
|
:alignmentBaseline alignment-bl
|
||||||
:dominantBaseline dominant-bl
|
:dominantBaseline dominant-bl
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue