[NUI] Add AdjustViewSize to ImageView
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 27 Aug 2021 07:34:26 +0000 (16:34 +0900)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Mon, 13 Sep 2021 07:33:23 +0000 (16:33 +0900)
commita5681f736353b94ac0945fb0ea281703cfb4404e
treeb4059d682e1cb9ab0ffce8cb87d85d9d779848b1
parent0eba6c5f3a330c61a76f8efb16220a40083790d7
[NUI] Add AdjustViewSize to ImageView

Up to now, although the position and size of image resource of ImageView
is set by FittingMode, but there is no way to set the size of ImageView
to respect the aspect ratio of its image resource.

If AdjustViewSize is true, then ImageView respects the aspect ratio of
its image resource when it determines its size.

AdjustViewSize works only if the ImageView is added to a View having Layout.
Otherwise, use can set ImageView's size to respect the aspect ratio of its image
resource by using ResizePolicyType.DimensionDependency.
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs
src/Tizen.NUI/src/public/Layouting/LayoutGroup.cs