[NUI] Fix size calculation for TextLabel with Margin in RelativeLayout
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 29 Mar 2023 11:04:19 +0000 (20:04 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Fri, 31 Mar 2023 03:57:58 +0000 (12:57 +0900)
commit496485ccc5e0ce87081513faaa9c3791dbdce734
tree12556b2601dc142e24ffc5d7165481755a790037
parent688f96c4cbf6cb2c8d6c3dc155363c83528f5df4
[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