[NUI] fix CellPadding bugs on LinearLayout (#2269)
authorYeongJong Lee <cleanlyj@naver.com>
Mon, 23 Nov 2020 05:30:00 +0000 (14:30 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Thu, 26 Nov 2020 08:19:50 +0000 (17:19 +0900)
commitf8a286e9c8c82ee8106d7a258b98038ef2e4906b
tree7a3deb68496abf90660d6dd944e2b82521d2f0e4
parent431d3e8ba1dd357b966d62d2e84883870299c2b7
[NUI] fix CellPadding bugs on LinearLayout (#2269)

`childrenCount` is added to count children that have false ExcludeLayouting.
And `CellPadding` is now respected regardless of exactly mode.

This patch will fix the following bugs.
1. In some cases, when CellPadding is set, children are misaligned.
2. If CellPadding is set and last child set ExcludeLayouting to true,
CellPadding is added to the end of items.

For more information on the issues, please see the comment of this
pull request.
src/Tizen.NUI/src/public/Layouting/LinearLayout.cs