Merge pull request #8704 from penpot/superalex-fix-text-disappearing

🐛 Fix WASM text auto-width geometry on finalize
This commit is contained in:
Aitor Moreno
2026-03-20 09:36:58 +01:00
committed by GitHub

View File

@@ -978,8 +978,7 @@
(select-keys shape [:selrect :points :width :height]))
content-has-text? (v2-content-has-text? content)
prev-content-has-text? (v2-content-has-text? prev-content)
new-size (when (and (not= :fixed (:grow-type shape))
content-has-text?)
new-size (when (not= :fixed (:grow-type shape))
(dwwt/get-wasm-text-new-size shape content))
;; New shapes: single undo on finalize only (no per-keystroke undo)
effective-save-undo? (if new-shape? finalize? save-undo?)