🐛 Fix WASM text auto-width geometry on finalize

This commit is contained in:
Alejandro Alonso
2026-03-20 09:28:28 +01:00
parent 58d959a37e
commit 353d8677b0

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?)