[NUI] Change suggested minimun size in Layout. (#1610)
authorneostom432 <31119276+neostom432@users.noreply.github.com>
Wed, 20 May 2020 01:59:57 +0000 (10:59 +0900)
committerGitHub <noreply@github.com>
Wed, 20 May 2020 01:59:57 +0000 (10:59 +0900)
commit79c657b064f23e541582306643c0d4c587151b6f
tree18b9ab8ee31c0c76bc4e51f3b28e55bf73133097
parenta7667805c0995f742b70d92ce99faee560b40e98
[NUI] Change suggested minimun size in Layout. (#1610)

When user set maximum size or minimum size instaed of size and specification,
it means that user want to use natural size of component and makes it bigger than minimum and smaller than maximum.

Currently, when using text, it lays whole text on one line and returns its size as natural size even if multiline is enabled.
So, we need to calculate HeightForWidth with MaximunWidth to know candidate height of multiline text.

Use GetHeightForWidth / GetWidthForHeight size as suggested minimun size.
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/Layouting/LayoutItem.cs