From b203c87dbb483a20c111f03ca4b1267f78e52d51 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 13 Jan 2023 14:21:28 +0100 Subject: [PATCH] :bug: Fix problem with rotated texts inside flex layout --- frontend/src/app/main/data/workspace/modifiers.cljs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/main/data/workspace/modifiers.cljs b/frontend/src/app/main/data/workspace/modifiers.cljs index 79f1fb2db..3f3495a5d 100644 --- a/frontend/src/app/main/data/workspace/modifiers.cljs +++ b/frontend/src/app/main/data/workspace/modifiers.cljs @@ -16,7 +16,6 @@ [app.common.pages.helpers :as cph] [app.common.spec :as us] [app.common.types.modifiers :as ctm] - [app.common.types.shape :as cts] [app.common.types.shape.layout :as ctl] [app.main.data.workspace.changes :as dch] [app.main.data.workspace.comments :as-alias dwcm] @@ -206,13 +205,10 @@ [shape {:keys [width height]}] (cond-> shape (some? width) - (assoc :width width) + (gsh/transform-shape (ctm/change-dimensions-modifiers shape :width width {:ignore-lock? true})) (some? height) - (assoc :height height) - - (or (some? width) (some? height)) - (cts/setup-rect-selrect))) + (gsh/transform-shape (ctm/change-dimensions-modifiers shape :height height {:ignore-lock? true})))) (defn apply-text-modifiers [objects text-modifiers]