0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-02 04:19:08 -05:00

🐛 Fix change layer index when moving absolute positioned shape

This commit is contained in:
alonso.torres 2023-03-16 17:39:11 +01:00
parent 2272977d67
commit 120d3005ea

View file

@ -739,6 +739,13 @@
#{}
(into (d/ordered-set) (find-all-empty-parents #{})))
;; Not move absolute shapes that won't change parent
moving-shapes
(->> moving-shapes
(remove (fn [shape]
(and (ctl/layout-absolute? shape)
(= frame-id (:parent-id shape))))))
changes
(-> (pcb/empty-changes it page-id)
(pcb/with-objects objects)