[NUI] Fix FlexLayout size calculation issue caused by typo
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 21 Mar 2022 08:44:48 +0000 (17:44 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 22 Mar 2022 08:34:14 +0000 (17:34 +0900)
Fix typo in FlexLayout size calculation logic.

This typo was caused by https://github.com/Samsung/TizenFX/pull/4032

src/Tizen.NUI/src/public/Layouting/FlexLayout.cs

index 1096e1f..8564db6 100755 (executable)
@@ -672,8 +672,8 @@ namespace Tizen.NUI
 
             childLayout?.Measure(childWidthMeasureSpec, childHeightMeasureSpec);
 
-            measureSize.width = (childLayout == null) ? 0 : MeasuredWidth.Size.AsRoundedValue();
-            measureSize.height = (childLayout == null) ? 0 : MeasuredHeight.Size.AsRoundedValue();
+            measureSize.width = (childLayout == null) ? 0 : childLayout.MeasuredWidth.Size.AsRoundedValue();
+            measureSize.height = (childLayout == null) ? 0 : childLayout.MeasuredHeight.Size.AsRoundedValue();
         }
 
         void InsertChild(LayoutItem child)