[NUI] Fix reparenting of Child bug (#1314)
authoragnelovaz <agnelo.vaz@samsung.com>
Tue, 21 Jan 2020 02:31:13 +0000 (02:31 +0000)
committerneostom432 <31119276+neostom432@users.noreply.github.com>
Tue, 21 Jan 2020 02:31:13 +0000 (11:31 +0900)
commitaf8e4f8439eadbfad604967ef0dca38911638a86
tree012ab9fe48514a6c84eed5243e2944759da2f6d6
parente8b054ecf9828f4432efa8421ebef57101bf6b3c
[NUI] Fix reparenting of Child bug (#1314)

If a child is added to a different layout the transition finished
animation can cause it to be removed from the new parent.

Cause : The removal animation is added to the stack, the add animation is added to
the stack.  Animations are run.  When animations finish the itemRemovalQueue is run, this
removes the child as the removal code added it to the itemRemovalQueue.

Fix : In the case of replacement, set a flag on the child so the removal code can excluded it
from the itemRemovalQueue.

Change-Id: Ib7da9e446c990258c8415e584bbb624dae4d6fa5
src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs
src/Tizen.NUI/src/public/Layouting/LayoutGroup.cs
src/Tizen.NUI/src/public/Layouting/LayoutItem.cs