mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 19:11:40 +02: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 %)
|
(let [component-shape (d/seek #(= (:shape-ref %)
|
||||||
(:shape-ref shape))
|
(:shape-ref shape))
|
||||||
(vals (:objects component)))
|
(vals (:objects component)))
|
||||||
|
root-shape (if (:component-id shape)
|
||||||
|
shape
|
||||||
|
root-shape)
|
||||||
|
root-component (if (:component-id shape)
|
||||||
|
component-shape
|
||||||
|
root-component)
|
||||||
|
|
||||||
[rchanges uchanges]
|
[rchanges uchanges]
|
||||||
(update-attrs shape
|
(update-attrs shape
|
||||||
|
@ -541,6 +547,12 @@
|
||||||
(let [component-shape (d/seek #(= (:shape-ref %)
|
(let [component-shape (d/seek #(= (:shape-ref %)
|
||||||
(:shape-ref shape))
|
(:shape-ref shape))
|
||||||
(vals (:objects component)))
|
(vals (:objects component)))
|
||||||
|
root-shape (if (:component-id shape)
|
||||||
|
shape
|
||||||
|
root-shape)
|
||||||
|
root-component (if (:component-id shape)
|
||||||
|
component-shape
|
||||||
|
root-component)
|
||||||
|
|
||||||
[rchanges uchanges]
|
[rchanges uchanges]
|
||||||
(update-attrs component-shape
|
(update-attrs component-shape
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue