[NUI] Fix FlexLayout to measure its child correctly
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 10 Aug 2021 12:29:05 +0000 (21:29 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 18 Aug 2021 03:10:44 +0000 (12:10 +0900)
commite037624d4f0b0c15f1568753e1b8ce7c464ae7a1
tree0bb7d25db88f69a1d183e372befc2ddcbd72ffe4
parent724a63d1353ad7a2f3ee88c9623818e8f61997d1
[NUI] Fix FlexLayout to measure its child correctly

FlexLayout calculated child view's size in OnLayout() without
considering child layout's measured size unlike other layouts'
OnLayout().

This caused that the grand child view's size was calculated incorrectly
if the child and grand child had MatchParent Width/HeightSpecification.

To resolve this issue, child layout's measured size is set with the
child view's size calculated by dali-toolkit's YOGA APIs.
src/Tizen.NUI/src/public/Layouting/FlexLayout.cs