From 01b97f7e819f88f01fa0b327dfa2c2aabfa81657 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 24 Jun 2020 19:10:15 +0800 Subject: ... --- src/ui/render/FlexLayoutRenderObject.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/ui/render/FlexLayoutRenderObject.cpp') diff --git a/src/ui/render/FlexLayoutRenderObject.cpp b/src/ui/render/FlexLayoutRenderObject.cpp index 079bc5a9..98eda066 100644 --- a/src/ui/render/FlexLayoutRenderObject.cpp +++ b/src/ui/render/FlexLayoutRenderObject.cpp @@ -69,14 +69,13 @@ Size FlexLayoutRenderObject::OnMeasureContent( } } - for (const int i : expand_children) { + for (const Index i : expand_children) { const float distributed_grow_length = remain_main_length * (GetChildLayoutData(i)->expand_factor / total_expand_factor); const auto child = children[i]; const float new_main_length = - get_main_length(child->GetMeasuredSize()) + - distributed_grow_length; + get_main_length(child->GetMeasuredSize()) + distributed_grow_length; child->Measure(create_requirement(new_main_length, cross_max_length)); } } else if (remain_main_length < 0) { @@ -91,7 +90,7 @@ Size FlexLayoutRenderObject::OnMeasureContent( } } - for (const int i : shrink_children) { + for (const Index i : shrink_children) { const float distributed_shrink_length = // negative remain_main_length * (GetChildLayoutData(i)->shrink_factor / total_shrink_factor); -- cgit v1.2.3