0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00

🐛 Fix imposters rendering with strokes

This commit is contained in:
AzazelN28 2024-03-19 11:42:18 +01:00
parent fe3c68ec39
commit 121876110a
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)