diff --git a/CHANGES.md b/CHANGES.md index c9791e493..762a10f5d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -37,8 +37,7 @@ - Fixed components get "dirty" marker when moved [Taiga #2764](https://tree.taiga.io/project/penpot/issue/2764) - Fixed cannot align objects in a group that is not part of a frame [Taiga #2762](https://tree.taiga.io/project/penpot/issue/2762) - Fix problem with double click on exit path editing [Taiga #2906](https://tree.taiga.io/project/penpot/issue/2906) - -### :arrow_up: Deps updates +- Fixed alignment of layers with children [Taiga #2862](https://tree.taiga.io/project/penpot/issue/2862) ### :heart: Community contributions by (Thank you!) diff --git a/common/src/app/common/geom/align.cljc b/common/src/app/common/geom/align.cljc index 11c8422c6..19d91e7b2 100644 --- a/common/src/app/common/geom/align.cljc +++ b/common/src/app/common/geom/align.cljc @@ -6,7 +6,6 @@ (ns app.common.geom.align (:require - [app.common.data :as d] [app.common.geom.shapes :as gsh] [app.common.pages.helpers :refer [get-children]] [clojure.spec.alpha :as s])) @@ -20,8 +19,7 @@ (defn- recursive-move "Move the shape and all its recursive children." [shape dpoint objects] - (->> (get-children (:id shape) objects) - (map (d/getf objects)) + (->> (get-children objects (:id shape)) (cons shape) (map #(gsh/move % dpoint))))