From 2dc0cfdee3cd4ce0133527273f2db57b6f25f469 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 14 Oct 2024 11:43:34 +0200 Subject: [PATCH] :bug: Fix problem with caps and inner shadows --- CHANGES.md | 1 + common/src/app/common/geom/shapes/bounds.cljc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 2a78e06e5..7363d47ee 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -44,6 +44,7 @@ - Fix problems with show in viewer and interactions [Github #4868](https://github.com/penpot/penpot/issues/4868) - Add visual feedback when moving an element into a board [Github #3210](https://github.com/penpot/penpot/issues/3210) - Fix percent calculation on grid layout tracks [Github #4688](https://github.com/penpot/penpot/issues/4688) +- Fix problem with caps and inner shadows [Github #4517](https://github.com/penpot/penpot/issues/4517) ## 2.2.1 diff --git a/common/src/app/common/geom/shapes/bounds.cljc b/common/src/app/common/geom/shapes/bounds.cljc index 5612837b4..d87ad2a4f 100644 --- a/common/src/app/common/geom/shapes/bounds.cljc +++ b/common/src/app/common/geom/shapes/bounds.cljc @@ -60,6 +60,7 @@ filter-y (mth/min y (+ y offset-y (- spread) (- blur) -5)) filter-w (+ w (mth/abs offset-x) (* spread 2) (* blur 2) 10) filter-h (+ h (mth/abs offset-y) (* spread 2) (* blur 2) 10)] + (grc/make-rect filter-x filter-y filter-w filter-h))) (defn get-rect-filter-bounds @@ -101,7 +102,7 @@ (map #(case (get % :stroke-alignment :center) :center (/ (:stroke-width % 0) 2) :outer (:stroke-width % 0) - 0)) + (:stroke-width % 0))) (reduce d/max 0)) stroke-margin