[NUI] Fix Picker's HeightSpecification
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 9 Feb 2023 07:12:49 +0000 (16:12 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Thu, 9 Feb 2023 09:49:35 +0000 (18:49 +0900)
commitf09ac40d6dd6bf4cac76aea2e2471a548e95b4f4
treede957d558b7afeaad1985d329b980ede0bbf6582
parente3891e2713d94f3382c8351c2e080518fcaffd6b
[NUI] Fix Picker's HeightSpecification

Previously, HeightSpecifications of Picker, DatePicker, TimePicker are
MatchParent.
So the Pickers' SizeHeights are calculated based on their parent's
SizeHeight.
This causes the recursive size calculation problem if Picker's parent
has WrapContent HeightSpecification. (e.g. Dialog)

Now, the Pickers' SizeHeights are set in DefaultThemeCommon as follows.
Picker's SizeHeight is set in DefaultThemeCommon.
DatePicker's Pickers SizeHeights are set in DefaultThemeCommon.
TimePicker's Pickers SizeHeights are set in DefaultThemeCommon.

Therefore, Picker does not need to have MatchParent HeightSpecification.
src/Tizen.NUI.Components/Controls/DatePicker.cs
src/Tizen.NUI.Components/Controls/Picker.cs
src/Tizen.NUI.Components/Controls/TimePicker.cs