[NUI] Fix reparenting of Child bug (#1314) (#1333)
authorneostom432 <31119276+neostom432@users.noreply.github.com>
Tue, 21 Jan 2020 03:10:34 +0000 (12:10 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 21 Jan 2020 03:10:34 +0000 (12:10 +0900)
commitd1ea192423f1d33bea22800e69cb484b397aefe1
tree1f2cb1610f2476e800bc146bf3e991cf2080858c
parent85582b171f806bcc06da177f3ad8960a060bbf66
[NUI] Fix reparenting of Child bug (#1314) (#1333)

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