[NUI] Use padding & margin to meausre size in Layout (#1437) (#1448)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 5 Mar 2020 08:27:58 +0000 (17:27 +0900)
committerGitHub <noreply@github.com>
Thu, 5 Mar 2020 08:27:58 +0000 (17:27 +0900)
commite1f8703a028a51a3c16d19866099c1a93ddb17d1
tree162f43a739abe1abf579686433fb890ccffb1f27
parentd0d1971591dd6018024086a99d3fe5e00f29193c
[NUI] Use padding & margin to meausre size in Layout (#1437) (#1448)

* [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