From e43fc0feb0f46dc27e2a3b89e32241ba2fab9a05 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 2 Dec 2022 09:32:57 +0100 Subject: [PATCH] :bug: Fix masks in layout flex --- common/src/app/common/geom/shapes/modifiers.cljc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/geom/shapes/modifiers.cljc b/common/src/app/common/geom/shapes/modifiers.cljc index a2a4e4752..b4fa223bd 100644 --- a/common/src/app/common/geom/shapes/modifiers.cljc +++ b/common/src/app/common/geom/shapes/modifiers.cljc @@ -147,6 +147,9 @@ children (cph/get-immediate-children objects shape-id)] (cond + (cph/mask-shape? shape) + (get-group-bounds objects bounds modif-tree (-> children first)) + (cph/group-shape? shape) (let [;; Transform here to then calculate the bounds relative to the transform current-bounds @@ -159,9 +162,6 @@ (mapv #(get-group-bounds objects bounds modif-tree %)))] (gpo/merge-parent-coords-bounds children-bounds current-bounds)) - (cph/mask-shape? shape) - (get-group-bounds objects bounds modif-tree (-> children first)) - :else (cond-> @(get bounds shape-id) (not (ctm/empty? modifiers))