From 496485ccc5e0ce87081513faaa9c3791dbdce734 Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Wed, 29 Mar 2023 20:04:19 +0900 Subject: [PATCH] [NUI] Fix size calculation for TextLabel with Margin in RelativeLayout Previously, RelativeLayout calculated the size for TextLabel with Margin incorrectly by calling MeasureChildWithMargins(). Because TextLabel size was decreased by its Margin size incorrectly. Now, RelativeLayout calculates the size for TextLabel with Margin correctly by calling MeasureChild(). Because TextLabel size is not decreased by its Margin size. --- src/Tizen.NUI/src/public/Layouting/RelativeLayout.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tizen.NUI/src/public/Layouting/RelativeLayout.cs b/src/Tizen.NUI/src/public/Layouting/RelativeLayout.cs index 84fcb78..28a1c69 100755 --- a/src/Tizen.NUI/src/public/Layouting/RelativeLayout.cs +++ b/src/Tizen.NUI/src/public/Layouting/RelativeLayout.cs @@ -494,7 +494,7 @@ namespace Tizen.NUI childLayout.Owner.HeightSpecification = LayoutParamPolicies.MatchParent; } - MeasureChildWithMargins(childLayout, childWidthMeasureSpec, new LayoutLength(0), childHeightMeasureSpec, new LayoutLength(0)); + MeasureChild(childLayout, childWidthMeasureSpec, childHeightMeasureSpec); if (ellipsisTextWidth || needMeasuredWidth) { -- 2.7.4