[NUI] Deprecate ResizePolicyType
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 6 May 2021 09:04:02 +0000 (18:04 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 27 May 2021 02:40:59 +0000 (11:40 +0900)
commit713c6417cf1161bda4cf006c413507d7ffa22764
treeb891b5af5fbfa3f6d23dc5c860dec4f2baacbb0f
parentb98c466770420db95935329c5c3a3767e2d5a71b
[NUI] Deprecate ResizePolicyType

Up to now, both ResizePolicyType and LayoutParamPolicies are supported.
Originally, ResizePolicyType is for a view whose parent view does not
have Layout.
In contrast, LayoutParamPolicies is for a view whose parent view has
Layout.

However, ResizePolicyType can be used as LayoutParamPolicies as well
internally.

This makes users confused which one they need to use in each case.

Not to confuse users, ResizePolicyType is deprecated.

Instead, LayoutParamPolicies can be used to set the size of a view
relative to its parent or children.

Specifically, LayoutParamPolicies.MatchParent and
LayoutParamPolicies.WrapContent work with parent view which does not
have Layout as how ResizePolicyType.FillToParent and
ResizePolicyType.FitToChildren work.
src/Tizen.NUI/src/public/BaseComponents/CustomView.cs
src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyle.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/Common/NUIConstants.cs