From 121876110a9a4d768db4c3391dc8c051dd3d06a0 Mon Sep 17 00:00:00 2001 From: AzazelN28 Date: Tue, 19 Mar 2024 11:42:18 +0100 Subject: [PATCH] :bug: Fix imposters rendering with strokes --- frontend/src/app/main/render.cljs | 2 +- frontend/src/app/main/ui/workspace/shapes/frame.cljs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/render.cljs b/frontend/src/app/main/render.cljs index 60fc6f6be..16c961b5d 100644 --- a/frontend/src/app/main/render.cljs +++ b/frontend/src/app/main/render.cljs @@ -625,7 +625,7 @@ (if (some? shape) (let [fonts (ff/shape->fonts shape objects) - bounds (gsb/get-object-bounds objects shape) + bounds (gsb/get-object-bounds objects shape {:ignore-margin? false}) background (when (str/ends-with? object-id "component") (or (:background options) (dom/get-css-variable "--assets-component-background-color") "#fff")) diff --git a/frontend/src/app/main/ui/workspace/shapes/frame.cljs b/frontend/src/app/main/ui/workspace/shapes/frame.cljs index cd60ec811..70e46664a 100644 --- a/frontend/src/app/main/ui/workspace/shapes/frame.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/frame.cljs @@ -130,7 +130,7 @@ container-ref (mf/use-ref nil) content-ref (mf/use-ref nil) - bounds (gsb/get-object-bounds objects shape) + bounds (gsb/get-object-bounds objects shape {:ignore-margin? false}) x (dm/get-prop bounds :x) y (dm/get-prop bounds :y)