mirror of
https://github.com/penpot/penpot.git
synced 2026-05-03 15:18:59 +00:00
🐛 Fix position bug when syncing component with several nested
This commit is contained in:
parent
6feccd5e36
commit
7a80297d31
@ -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…
x
Reference in New Issue
Block a user