mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
Merge pull request #4292 from penpot/azazeln28-fix-imposters-with-strokes
🐛 Fix imposters rendering with strokes
This commit is contained in:
commit
ebb02f28be
2 changed files with 2 additions and 2 deletions
|
@ -625,7 +625,7 @@
|
||||||
(if (some? shape)
|
(if (some? shape)
|
||||||
(let [fonts (ff/shape->fonts shape objects)
|
(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")
|
background (when (str/ends-with? object-id "component")
|
||||||
(or (:background options) (dom/get-css-variable "--assets-component-background-color") "#fff"))
|
(or (:background options) (dom/get-css-variable "--assets-component-background-color") "#fff"))
|
||||||
|
|
|
@ -130,7 +130,7 @@
|
||||||
container-ref (mf/use-ref nil)
|
container-ref (mf/use-ref nil)
|
||||||
content-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)
|
x (dm/get-prop bounds :x)
|
||||||
y (dm/get-prop bounds :y)
|
y (dm/get-prop bounds :y)
|
||||||
|
|
Loading…
Add table
Reference in a new issue