mirror of
https://github.com/penpot/penpot.git
synced 2026-03-02 08:13:46 +00:00
💄 Add cosmetic improvements to align-object-to-parent fn
This commit is contained in:
committed by
Alonso Torres
parent
a3f347c9fd
commit
e97aab4c7f
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user