[NUI] Fix to measure RelativeLayout's children sizes correctly
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Sun, 18 Jul 2021 17:44:39 +0000 (02:44 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 19 Jul 2021 09:01:03 +0000 (18:01 +0900)
commit3b62cc2a6aa3919dc1f02bfd4f6195963ca81152
tree91c5accafc9d121f86b68fb74e3a84b8e1a0ff47
parent1366583a46216a6a721861254e5f7fb375efecde
[NUI] Fix to measure RelativeLayout's children sizes correctly

Previously, TextLabel and TextField's Ellipsis were not displayed in
RelativeLayout, because TextLabel and TextField's size always covers the full
text string.

Now, if TextLabel and TextField support Ellipsis, then RelativeLayout sets the
exact space size to the TextLabel and TextField. So if the assigned size does
not cover the full text string, then Ellipsis is displayed.

Previously, redundant Meausre() was called again in OnMeasure().

Now, Measure() is called again only for FillHorizontal/Vertical cases to set the
filled size to the MeasuredWidth/Height to calculate grand children's size
correctly.
src/Tizen.NUI/src/internal/Layouting/RelativeLayout.cs
src/Tizen.NUI/src/public/Layouting/RelativeLayout.cs