0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

Merge pull request #4292 from penpot/azazeln28-fix-imposters-with-strokes

🐛 Fix imposters rendering with strokes
This commit is contained in:
Alejandro 2024-03-19 12:08:23 +01:00 committed by GitHub
commit ebb02f28be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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"))

View file

@ -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)