[NUI] Use padding & margin to meausre size in Layout (#1437)
authorneostom432 <31119276+neostom432@users.noreply.github.com>
Fri, 28 Feb 2020 12:00:09 +0000 (21:00 +0900)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2020 12:00:09 +0000 (21:00 +0900)
commit0844f0e676a15f397ac24fa3f472ddc491791a82
tree2b0b925e8025635efa2dc33c055bd2676f138ae4
parentd4e65e0f251542e24193249cbd6f8932b91ba302
[NUI] Use padding & margin to meausre size in Layout (#1437)

* [NUI] Use padding & margin to meausre size in Layout

Previously, padding of parent and margin of child are not concerned when measure child size.

For now, When child use MatchParent,
the size of child will be ParentSize - ParentPadding - childMargin.

And when child use WrapContent,
the size of child will be GrandchildSize + childPadding.

Also Weight will be use only ParentSize - ParentPadding - childMargin size for measuring.

* [NUI] Measure Padding and Margin before call API

To make sure there is no API change, measure Padding and Margin before call API.
src/Tizen.NUI.Components/Controls/ScrollableBase.cs
src/Tizen.NUI/src/public/Layouting/FlexLayout.cs
src/Tizen.NUI/src/public/Layouting/GridLayout.cs
src/Tizen.NUI/src/public/Layouting/LayoutGroup.cs
src/Tizen.NUI/src/public/Layouting/LayoutItem.cs
src/Tizen.NUI/src/public/Layouting/LinearLayout.cs