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:
parent
a3f347c9fd
commit
e97aab4c7f
1 changed files with 4 additions and 4 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue