[NUI] Fix RelativeLayout to calculate ellipsis text from line target
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 2 May 2022 09:42:20 +0000 (18:42 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 3 May 2022 09:00:21 +0000 (02:00 -0700)
commit238afa3dfcd58ab4e41f8a61bc087a8a26cd4299
treeb7d513ad886e4212c46d91da1dc7f8a1c9c275f8
parentfa1b88931ff4c643a8bd30f74a382142b457490c
[NUI] Fix RelativeLayout to calculate ellipsis text from line target

It is commonly used that child view is positioned with its size from
line target in RelativeLayout.

If ellipsis text was positioned from line target in RelativeLayout, then
it was not positioned to the place where users intended.

e.g. Position textLabel at the bottom of parent.
     The target is the bottom line of the parent.
RelativeLayout.SetTopTarget(textLabel, parent);
RelativeLayout.SetTopRelativeOffset(textLabel, 1.0f);
RelativeLayout.SetBottomTarget(textLabel, parent);
RelativeLayout.SetBottomRelativeOffset(textLabel, 1.0f);
RelativeLayout.SetVerticalAlignment(textLabel, RelativeLayout.Alignment.End);

Previously, in the above situation, RelativeLayout could not position
ellipsis text at the bottom of the parent.
Instead, the ellipsis text was positioned outside of the parent.

Now, in the above situation, RelativeLayout position ellipsis text at
the bottom of the parent.
src/Tizen.NUI/src/public/Layouting/RelativeLayout.cs