0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

💄 Add cosmetic improvements to align-object-to-parent fn

This commit is contained in:
Andrey Antukh 2023-07-14 14:54:40 +02:00 committed by Alonso Torres
parent a3f347c9fd
commit e97aab4c7f

View file

@ -1056,10 +1056,10 @@
(defn align-object-to-parent
[objects object-id axis]
(let [object (get objects object-id)
parent (:parent-id (get objects object-id))
parent-obj (get objects parent)]
(gal/align-to-rect object parent-obj axis objects)))
(let [object (get objects object-id)
parent-id (:parent-id (get objects object-id))
parent (get objects parent-id)]
(gal/align-to-rect object parent axis objects)))
(defn align-objects-list
[objects selected axis]