[NUI] Fix Picker's HeightSpecification
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 9 Feb 2023 07:12:49 +0000 (16:12 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Mon, 13 Feb 2023 09:16:02 +0000 (18:16 +0900)
commit55ec7902099f0464205570e705f36cc4c455177e
tree707f47421b91dd0c91db0e065f0c2f92fe516633
parentdc49c9416c943230a743666540b1354a21fc8df9
[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