Fix SuggestedMinimumWidth/Height to calculate required size correctly 89/274089/1
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 21 Apr 2022 05:59:23 +0000 (14:59 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 21 Apr 2022 06:57:13 +0000 (15:57 +0900)
commit5def3568e5f83d572a44a129e2d38ba454bbe401
treeb7af95f5d1b0a25f3cfb6aba313bdab81762e631
parent76ec9a5a67f42868edbed53e5325167ad92a9c74
Fix SuggestedMinimumWidth/Height to calculate required size correctly

SuggestedMinimumWidth/Height returns the minimum width and height of a
view required in a layout.

Previously, SuggestedMinimumWidth/Height used GetWidthForHeight and
GetHeightForWidth to calculate the minimum width and height of a view
although width/height were not dependent on height/width.
e.g.
if naturalSize.width = 0 and naturalSize.height = 100,
then SuggestedMinimumHeight would be 0 instead of 100.

Now, SuggestedMinimumWidth/Height uses GetWidthForHeight and
GetHeightforWidth only if width/height are dependent on height/width.

Change-Id: Ib65522b8e5399278b57a8866ad548e4d2be61469
dali-csharp-binder/src/dali-wrap.cpp