[NUI] Fix FlexLayout size calculation with Padding
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 7 Feb 2022 08:16:48 +0000 (17:16 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 8 Feb 2022 04:41:28 +0000 (13:41 +0900)
commit8b6081c2204685b0c42a3bc2c6ac723df6c98e1d
treeb5dc56ae64c1af625bc32794245edd1cab0690f6
parentd51c477763be6aea7c679df00a10545302aeec40
[NUI] Fix FlexLayout size calculation with Padding

Previously, if FlexLayout had Padding, then child's and grand child's sizes
were calculated incorrectly.
Because in FlexLayout's OnLayout(), child's size was given with applying
Padding. But Padding was applied in FlexLayout's OnLayout() again.
As a result, child's size became smaller by Padding size than it had to be.

Now, if FlexLayout has Padding, then child's and grand child's sizes are
calculated correctly.
The Padding is not applied duplicately while child's size is calculated.
src/Tizen.NUI/src/public/Layouting/FlexLayout.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/FlexLayoutTest.cs [new file with mode: 0755]