0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

🐛 Fix problem when moving absolute positioned element

This commit is contained in:
alonso.torres 2023-02-24 14:26:33 +01:00
parent e9942e5527
commit 4d46460f90
2 changed files with 4 additions and 2 deletions

View file

@ -643,7 +643,9 @@
(let [objects (wsh/lookup-page-objects state)
selected (wsh/lookup-selected state {:omit-blocked? true})
selected-shapes (->> selected (map (d/getf objects)))]
(if (every? (partial ctl/layout-immediate-child? objects) selected-shapes)
(if (every? #(and (ctl/layout-immediate-child? objects %)
(not (ctl/layout-absolute? %)))
selected-shapes)
(rx/of (reorder-selected-layout-child direction))
(rx/of (nudge-selected-shapes direction shift?)))))))

View file

@ -206,7 +206,7 @@
[:div.element-set
[:div.element-set-title
[:span (if is-layout-container?
[:span (if (and is-layout-container? (not is-layout-child?))
"Flex board"
"Flex element")]]