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)