[NUI] remove internal child properly when child view of FlexLayout is removed (#2522)
authorYeongJong Lee <cleanlyj@naver.com>
Thu, 21 Jan 2021 06:30:07 +0000 (15:30 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Tue, 26 Jan 2021 08:27:40 +0000 (17:27 +0900)
commit08f917a91aab65ab3cf5b51321c87b1b7f6d77fc
tree91f992de2cec3f135afa8c68dba1641836912f37
parent699ebc05797f8c9291ea9bcdc36c991c044fec47
[NUI] remove internal child properly when child view of FlexLayout is removed (#2522)

In `FlexLayout`, when we add new view, the existing view shrink.
but when removed they are in shrinked state. they should change back.

To fix this issue, this patch remove internal child(child of yoga
layout) when child view of `FlexLayout` is removed.

For now, `OnChildRemove` API will work correctly.

Thank you Aman Jeph for the report.

Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/internal/Layouting/Interop/Interop.FlexLayout.cs
src/Tizen.NUI/src/public/Layouting/FlexLayout.cs
src/Tizen.NUI/src/public/Layouting/LayoutGroup.cs