[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)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Tue, 21 Feb 2023 08:40:29 +0000 (17:40 +0900)
commit4b9abd3d8201101b0cda5e6320a4009b6a456469
tree743330f0fb602bfae2d3e167af1ae0500ba6d1cf
parentb8f069703c4041820f7a8a37fbda70e68dfdf835
[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