[NUI] Fix layer MoveAbove/MoveBelow API change window's List
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 7 Mar 2023 06:28:45 +0000 (15:28 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Tue, 7 Mar 2023 08:35:27 +0000 (17:35 +0900)
Previous MoveAbove / MoveBelow API change only native side layer order.
It didn't apply to the window who hold this layer.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/public/Common/Layer.cs

index cc9629c..a611fa2 100755 (executable)
@@ -533,8 +533,7 @@ namespace Tizen.NUI
         /// <since_tizen> 3 </since_tizen>
         public void MoveAbove(Layer target)
         {
-            Interop.Layer.MoveAbove(SwigCPtr, Layer.getCPtr(target));
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            RaiseAbove(target);
         }
 
         /// <summary>
@@ -545,8 +544,7 @@ namespace Tizen.NUI
         /// <since_tizen> 3 </since_tizen>
         public void MoveBelow(Layer target)
         {
-            Interop.Layer.MoveBelow(SwigCPtr, Layer.getCPtr(target));
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            LowerBelow(target);
         }
 
         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.