🐛 Fix text width not applied on first change for auto-width texts in WASM viewport

This commit is contained in:
Alejandro Alonso
2026-03-10 13:36:46 +01:00
parent ecf525e094
commit 70ef763bfe

View File

@@ -675,6 +675,13 @@
(let [structure-entries (parse-structure-modifiers modif-tree)]
(wasm.api/set-structure-modifiers structure-entries))
;; Apply property changes (e.g. grow-type) to WASM shapes before
;; propagating geometry, so propagate_modifiers sees the updated state.
(doseq [[id {:keys [property value]}] (extract-property-changes modif-tree)]
(when (= property :grow-type)
(wasm.api/use-shape id)
(wasm.api/set-shape-grow-type value)))
(let [objects (dsh/lookup-page-objects state)
geometry-entries