From 038d0b4e6234c569ec8905e029bc288b3d743c1c Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Wed, 24 Jan 2024 18:44:22 +0900 Subject: [PATCH] [NUI] Fix LinearLayout to update its child's MeasuredSizeHeight 0 correctly LinearLayout updates its child's MeasuredSizeWidth 0 correctly but it does not update its child's MeasuredSizeHeight 0 due to the range typo. The range typo has been fixed so child's MeasuredSizeHeight 0 is also handled correctly. --- src/Tizen.NUI/src/public/Layouting/LinearLayout.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tizen.NUI/src/public/Layouting/LinearLayout.cs b/src/Tizen.NUI/src/public/Layouting/LinearLayout.cs index 72f3951..3450182 100755 --- a/src/Tizen.NUI/src/public/Layouting/LinearLayout.cs +++ b/src/Tizen.NUI/src/public/Layouting/LinearLayout.cs @@ -623,7 +623,7 @@ namespace Tizen.NUI // Child layout1 is MatchParent and its margin is 20. (This margin is not ad // Child layout2 is MatchParent and its margin is 0. // Then, child layout1's size is 30 and child layout2's size is 50. - if ((childDesiredHeight == LayoutParamPolicies.WrapContent) || ((childDesiredHeight > 0) && (!useRemainingHeight))) + if ((childDesiredHeight == LayoutParamPolicies.WrapContent) || ((childDesiredHeight >= 0) && (!useRemainingHeight))) { MeasureChildWithMargins(childLayout, widthMeasureSpec, new LayoutLength(0), heightMeasureSpec, new LayoutLength(0)); -- 2.7.4