🐛 Fix problem when resizing texts inside groups

This commit is contained in:
alonso.torres 2022-01-04 14:19:21 +01:00
parent 6334520c66
commit 51ea354bcb
5 changed files with 250 additions and 150 deletions

View file

@ -14,11 +14,10 @@
[cuerdas.core :as str]))
(defn generate-root-styles
[shape node]
[_shape node]
(let [valign (:vertical-align node "top")
width (some-> (:width shape) (+ 1))
base #js {:height (or (:height shape) "100%")
:width (or width "100%")
base #js {:height "100%"
:width "100%"
:fontFamily "sourcesanspro"}]
(cond-> base
(= valign "top") (obj/set! "justifyContent" "flex-start")