[NUI] Change the call to GetRootLayer() so that the layer index can be updated.
authorjoogab.yun <joogab.yun@samsung.com>
Wed, 26 Apr 2023 04:43:57 +0000 (13:43 +0900)
committerJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Wed, 26 Apr 2023 07:07:45 +0000 (16:07 +0900)
If the root layer index is not updated and another layer is added first, a problem occurs in calculating the layer index.
Something like LowerBelow may not work.

src/Tizen.NUI/src/public/Window/Window.cs

index dc80b3f..f844968 100755 (executable)
@@ -1383,7 +1383,7 @@ namespace Tizen.NUI
 
             if (isBorderWindow)
             {
-                Interop.Actor.Add(GetBorderWindowRootLayer().SwigCPtr, layer.SwigCPtr);
+                Interop.Actor.Add(GetRootLayer().SwigCPtr, layer.SwigCPtr);
                 if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); }
             }
             else