mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 04:08:23 +00:00
🐛 Preserve root shape position on parent when create component
This commit is contained in:
parent
8c3f90fe36
commit
bca90c54e9
@ -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…
x
Reference in New Issue
Block a user