From e041f93680a17ad81c5d118312cb66fa90b7eee1 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 25 Jan 2023 14:39:43 +0100 Subject: [PATCH] :bug: Fix space-between preserves gap distances --- common/src/app/common/geom/shapes/flex_layout/lines.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/geom/shapes/flex_layout/lines.cljc b/common/src/app/common/geom/shapes/flex_layout/lines.cljc index 48f922856..b2eb709dd 100644 --- a/common/src/app/common/geom/shapes/flex_layout/lines.cljc +++ b/common/src/app/common/geom/shapes/flex_layout/lines.cljc @@ -236,7 +236,7 @@ 0 (and row? space-between?) - (/ (- width line-width) (dec num-children)) + (max layout-gap-col (/ (- width line-width) (dec num-children))) :else layout-gap-col) @@ -246,7 +246,7 @@ 0 (and col? space-between?) - (/ (- height line-height) (dec num-children)) + (max layout-gap-row (/ (- height line-height) (dec num-children))) :else layout-gap-row)