From 378be9473d58fc407f42d24d41805466e776d916 Mon Sep 17 00:00:00 2001 From: Alonso Torres Date: Thu, 25 Sep 2025 08:50:31 +0200 Subject: [PATCH] :bug: Fix problem with export size (#7374) --- CHANGES.md | 1 + common/src/app/common/geom/shapes/bounds.cljc | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index ad2ef0a05f..315dcb759e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,6 +17,7 @@ - Fix selection problems when devtools open [Taiga #11950](https://tree.taiga.io/project/penpot/issue/11950) - Fix long font names overlap [Taiga #11844](https://tree.taiga.io/project/penpot/issue/11844) - Fix paste behavior according to the selected element [Taiga #11979](https://tree.taiga.io/project/penpot/issue/11979) +- Fix problem with export size [#7160](https://github.com/penpot/penpot/issues/7160) ## 2.10.0 (Unreleased) diff --git a/common/src/app/common/geom/shapes/bounds.cljc b/common/src/app/common/geom/shapes/bounds.cljc index 3117e20adf..a6a6608ba4 100644 --- a/common/src/app/common/geom/shapes/bounds.cljc +++ b/common/src/app/common/geom/shapes/bounds.cljc @@ -88,8 +88,11 @@ ([shape] (get-shape-filter-bounds shape false)) ([shape ignore-shadow-margin?] - (if (and (cfh/svg-raw-shape? shape) - (not= :svg (dm/get-in shape [:content :tag]))) + (if (or (and (cfh/svg-raw-shape? shape) + (not= :svg (dm/get-in shape [:content :tag]))) + ;; If no shadows or blur, we return the selrect as is + (and (empty? (-> shape :shadow)) + (zero? (-> shape :blur :value (or 0))))) (dm/get-prop shape :selrect) (let [filters (shape->filters shape) blur-value (or (-> shape :blur :value) 0)