From 4f0a2f32c273780c32cc3937615c2a8bbd993aab Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 22 Jun 2020 01:09:24 +0800 Subject: ... --- include/cru/ui/base.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/cru/ui/base.hpp') diff --git a/include/cru/ui/base.hpp b/include/cru/ui/base.hpp index 97b0dbff..dacf2d6f 100644 --- a/include/cru/ui/base.hpp +++ b/include/cru/ui/base.hpp @@ -270,10 +270,8 @@ using FlexMainAlignment = Alignment; using FlexCrossAlignment = Alignment; struct FlexChildLayoutData { - // nullopt stands for looking at my content - std::optional flex_basis = std::nullopt; - float flex_grow = 0; - float flex_shrink = 0; + float expand_factor = 0; + float shrink_factor = 1; // nullopt stands for looking at parent's setting std::optional cross_alignment = std::nullopt; }; -- cgit v1.2.3