[NUI] Create Layout only for TextLabel (#1850)
authorneostom432 <31119276+neostom432@users.noreply.github.com>
Tue, 21 Jul 2020 10:14:48 +0000 (19:14 +0900)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2020 10:14:48 +0000 (19:14 +0900)
commit663c8a0ad5082db7a9e3791f00086cf5910bfaf6
tree63b1ba1916490b906fc8de4b0fd4eb0c5be97d5b
parente71f767b7c4b0d833b304018aca3967164f444d3
[NUI] Create Layout only for TextLabel (#1850)

There are 4 cases.

1. Fixed or MatchParent Width and Height
: Use fixed or parent size

2. Fixed or MatchParent Width and WrapContent Height
: Get Height for Width using GetHeightForWidth() API

3. WrapContent Width and Fixed or MatchParent Height
: Get Width for Height using GetNaturalSize() API because there is no
overrided GetWidthForHeight function in TextLabel.

4. WrapContent Width and Height
: Get Width and Height using GetNaturalSize() API

Padding will be automatically applied by DALi TextLabel.
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs