[NUI] Fix reparenting of Child bug (#1314) (#1332)
authorneostom432 <31119276+neostom432@users.noreply.github.com>
Tue, 21 Jan 2020 03:09:36 +0000 (12:09 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 21 Jan 2020 03:09:36 +0000 (12:09 +0900)
commit43f2d4d5bdc252b3f7a0362858ef1bab8ba00bca
treee3ff044e0731b74fb6b46ecfcec89eda7bbef308
parent73edc1933380ce84dd2a802d8fe903a67d08e103
[NUI] Fix reparenting of Child bug (#1314) (#1332)

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

Co-authored-by: agnelovaz <agnelo.vaz@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs
src/Tizen.NUI/src/public/Layouting/LayoutGroup.cs
src/Tizen.NUI/src/public/Layouting/LayoutItem.cs