From d5c7a6e547aa18028e768bd12f0a40b433d68c03 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 6 Feb 2023 17:49:51 +0100 Subject: [PATCH] :bug: Fix problem with auto-width and space-around --- common/src/app/common/geom/shapes/flex_layout/bounds.cljc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/src/app/common/geom/shapes/flex_layout/bounds.cljc b/common/src/app/common/geom/shapes/flex_layout/bounds.cljc index d4fff31a7..fea42fcad 100644 --- a/common/src/app/common/geom/shapes/flex_layout/bounds.cljc +++ b/common/src/app/common/geom/shapes/flex_layout/bounds.cljc @@ -28,8 +28,6 @@ h-center? (ctl/h-center? parent) h-end? (ctl/h-end? parent) - around? (ctl/space-around? parent) - between? (ctl/space-between? parent) fill-w? (ctl/fill-width? child) fill-h? (ctl/fill-height? child) @@ -70,7 +68,7 @@ (gpt/add base-p (hv 0.01)) (gpt/add base-p (vv 0.01))] - (or col? h-start? around? between?) + (and col? h-start?) (conj (gpt/add base-p (hv min-width))) (and col? h-center?) @@ -79,7 +77,7 @@ (and col? h-center?) (conj (gpt/subtract base-p (hv min-width))) - (or row? v-start? around? between?) + (and row? v-start?) (conj (gpt/add base-p (vv min-height))) (and row? v-center?)