mirror of
https://github.com/penpot/penpot.git
synced 2025-03-15 17:21:17 -05:00
🐛 Preserve root shape position on parent when create component
This commit is contained in:
parent
8c3f90fe36
commit
bca90c54e9
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@
|
|||
(cond-> (nil? index)
|
||||
(pcb/add-object shape))
|
||||
(cond-> (some? (:parent-id attrs))
|
||||
(pcb/change-parent (:parent-id attrs) [shape]))
|
||||
(pcb/change-parent (:parent-id attrs) [shape] index))
|
||||
(cond-> (ctl/grid-layout? objects (:parent-id shape))
|
||||
(pcb/update-shapes [(:parent-id shape)] ctl/assign-cells)))]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue