From 353d8677b054cf51330205952eccc1cb4cfc2b0e Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 20 Mar 2026 09:28:28 +0100 Subject: [PATCH] :bug: Fix WASM text auto-width geometry on finalize --- frontend/src/app/main/data/workspace/texts.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/workspace/texts.cljs b/frontend/src/app/main/data/workspace/texts.cljs index b1903ec5c5..440c8da3d7 100644 --- a/frontend/src/app/main/data/workspace/texts.cljs +++ b/frontend/src/app/main/data/workspace/texts.cljs @@ -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?)