mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
🐛 Fix position bug when syncing component with several nested
This commit is contained in:
parent
6feccd5e36
commit
7a80297d31
1 changed files with 12 additions and 0 deletions
|
@ -434,6 +434,12 @@
|
|||
(let [component-shape (d/seek #(= (:shape-ref %)
|
||||
(:shape-ref shape))
|
||||
(vals (:objects component)))
|
||||
root-shape (if (:component-id shape)
|
||||
shape
|
||||
root-shape)
|
||||
root-component (if (:component-id shape)
|
||||
component-shape
|
||||
root-component)
|
||||
|
||||
[rchanges uchanges]
|
||||
(update-attrs shape
|
||||
|
@ -541,6 +547,12 @@
|
|||
(let [component-shape (d/seek #(= (:shape-ref %)
|
||||
(:shape-ref shape))
|
||||
(vals (:objects component)))
|
||||
root-shape (if (:component-id shape)
|
||||
shape
|
||||
root-shape)
|
||||
root-component (if (:component-id shape)
|
||||
component-shape
|
||||
root-component)
|
||||
|
||||
[rchanges uchanges]
|
||||
(update-attrs component-shape
|
||||
|
|
Loading…
Add table
Reference in a new issue