[NUI] Fix FlexLayout OnMeasure to calculate size correctly
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 16 Dec 2022 10:11:13 +0000 (19:11 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 27 Dec 2022 05:50:29 +0000 (14:50 +0900)
commiteff4e447d261798c5ab3a2f9b50303eaecf0b9e8
tree190913435e7554b728d8f748b33e4174982c9cb7
parent266ff434724560ba33e6118ce29599c146e04e5c
[NUI] Fix FlexLayout OnMeasure to calculate size correctly

Previously, the measured size of FlexLayout with WrapContent could be
calculated like MatchParent.
The above issue happened in the following case.
Tizen.NUI.Components.DialogPage.ShowAlertDialog("Title", "Message", null);

To resolve the above issue without breaking backward compatibility,
FlexLayout OnMeasure has been fixed to use ResolveSizeAndState()
instead of GetDefaultSize() when calculating the measured size.

To test the issue, showing a dialog without action button case has
been added to Tizen.NUI.StyleGuide.
src/Tizen.NUI/src/public/Layouting/FlexLayout.cs
test/Tizen.NUI.StyleGuide/Examples/DialogAndAlertDialogExample.cs