diff --git a/common/src/app/common/geom/shapes/flex_layout/drop_area.cljc b/common/src/app/common/geom/shapes/flex_layout/drop_area.cljc index e9a5fa4915..bbc350712c 100644 --- a/common/src/app/common/geom/shapes/flex_layout/drop_area.cljc +++ b/common/src/app/common/geom/shapes/flex_layout/drop_area.cljc @@ -81,7 +81,7 @@ h-center? (and row? (ctl/h-center? frame)) h-end? (and row? (ctl/h-end? frame)) v-center? (and col? (ctl/v-center? frame)) - v-end? (and row? (ctl/v-end? frame)) + v-end? (and col? (ctl/v-end? frame)) center (gco/shape->center frame) start-p (gmt/transform-point-center start-p center transform-inverse) diff --git a/common/src/app/common/geom/shapes/flex_layout/layout_data.cljc b/common/src/app/common/geom/shapes/flex_layout/layout_data.cljc index c9e4f7c57e..6d91a25707 100644 --- a/common/src/app/common/geom/shapes/flex_layout/layout_data.cljc +++ b/common/src/app/common/geom/shapes/flex_layout/layout_data.cljc @@ -369,9 +369,6 @@ (cond (and col? space-evenly?) 0 - (and col? space-evenly? auto-height?) - 0 - (and col? space-around?) (/ (max layout-gap-row (/ (- height line-height) num-children)) 2) diff --git a/common/src/app/common/geom/shapes/flex_layout/positions.cljc b/common/src/app/common/geom/shapes/flex_layout/positions.cljc index 48b49d7c06..675a090c6b 100644 --- a/common/src/app/common/geom/shapes/flex_layout/positions.cljc +++ b/common/src/app/common/geom/shapes/flex_layout/positions.cljc @@ -61,7 +61,7 @@ (gpt/add (hv free-width-gap)) around? - (gpt/add (hv (max lines-gap-col (/ free-width num-lines) 2))) + (gpt/add (hv (max lines-gap-col (/ free-width num-lines 2)))) evenly? (gpt/add (hv (max lines-gap-col (/ free-width (inc num-lines)))))))))