mirror of
https://github.com/penpot/penpot.git
synced 2026-03-05 17:51:17 +00:00
🐛 Preserve root shape position on parent when create component
This commit is contained in:
@@ -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)))]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user