From 0b0e193b70741656f517634428cf2f8352faac58 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 8 Apr 2026 10:21:32 +0200 Subject: [PATCH] :bug: Fix problem with text auto grow in layouts --- frontend/src/app/main/data/workspace/texts.cljs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/data/workspace/texts.cljs b/frontend/src/app/main/data/workspace/texts.cljs index 43ff2a71af..46ae233a2b 100644 --- a/frontend/src/app/main/data/workspace/texts.cljs +++ b/frontend/src/app/main/data/workspace/texts.cljs @@ -1049,16 +1049,15 @@ content-has-text? has-prev-content?) (dissoc :prev-content)) + (cond-> (and (not new-shape?) prev-content-has-text? (not content-has-text?) (not finalize?)) (assoc :prev-content prev-content)) + (cond-> (and update-name? (some? name)) - (assoc :name name)) - (cond-> (some? new-size) - (gsh/transform-shape - (ctm/change-size shape (:width new-size) (:height new-size)))))) + (assoc :name name)))) {:save-undo? finalize-save-undo-first? :stack-undo? effective-stack-undo? :undo-group (when new-shape? id)})