diff --git a/frontend/src/app/main/ui/flex_controls/gap.cljs b/frontend/src/app/main/ui/flex_controls/gap.cljs index bb00f37586..2fa1f7400d 100644 --- a/frontend/src/app/main/ui/flex_controls/gap.cljs +++ b/frontend/src/app/main/ui/flex_controls/gap.cljs @@ -208,7 +208,8 @@ wrap-blocks (let [block-children (->> children (map #(vector (gpo/parent-coords-bounds (:points %) (:points frame)) %))) - bounds (d/lazy-map (keys objects) #(gsh/shape->points (get objects %))) + bounds (d/lazy-map (cfh/get-children-ids-with-self objects frame-id) + #(gsh/shape->points (get objects %))) layout-data (gsl/calc-layout-data frame (:points frame) block-children bounds objects) layout-bounds (:layout-bounds layout-data)