From 071ac0366c7c66d1d55bf93d71cca6239e1ba506 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 1 Feb 2023 12:46:38 +0100 Subject: [PATCH] :bug: Fix problem with max-size 0 --- common/src/app/common/geom/shapes/flex_layout/modifiers.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/geom/shapes/flex_layout/modifiers.cljc b/common/src/app/common/geom/shapes/flex_layout/modifiers.cljc index eceaa584f4..72994b8732 100644 --- a/common/src/app/common/geom/shapes/flex_layout/modifiers.cljc +++ b/common/src/app/common/geom/shapes/flex_layout/modifiers.cljc @@ -32,7 +32,7 @@ (ctl/col? parent) (let [line-width (min line-width (or to-bound-width line-width)) target-width (max (- line-width (ctl/child-width-margin child)) 0.01) - max-width (ctl/child-max-width child) + max-width (max (ctl/child-max-width child) 0.01) target-width (min max-width target-width) fill-scale (/ target-width child-width)] {:width target-width @@ -56,7 +56,7 @@ (ctl/row? parent) (let [line-height (min line-height (or to-bound-height line-height)) target-height (max (- line-height (ctl/child-height-margin child)) 0.01) - max-height (ctl/child-max-height child) + max-height (max (ctl/child-max-height child) 0.01) target-height (min max-height target-height) fill-scale (/ target-height child-height)] {:height target-height