[NUI] Fix layout sibiling order changes by RaiseToTop and LowerToBottom
authoreverLEEst(SangHyeon Lee) <sh10233.lee@samsung.com>
Tue, 15 Apr 2025 08:12:01 +0000 (17:12 +0900)
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Thu, 17 Apr 2025 07:55:55 +0000 (16:55 +0900)
src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs

index b142d98b1e50d6f7923b53991634de4ca834857c..8a870c026c844ec22b0339f812fba3fd6af66286 100755 (executable)
@@ -391,8 +391,7 @@ namespace Tizen.NUI.BaseComponents
                 parentChildren.Remove(this);
                 parentChildren.Add(this);
 
-                LayoutGroup layout = Layout as LayoutGroup;
-                layout?.ChangeLayoutSiblingOrder(parentChildren.Count - 1);
+                Layout?.ChangeLayoutSiblingOrder(parentChildren.Count - 1);
 
                 Interop.NDalic.RaiseToTop(SwigCPtr);
                 if (NDalicPINVOKE.SWIGPendingException.Pending)
@@ -418,8 +417,7 @@ namespace Tizen.NUI.BaseComponents
                 parentChildren.Remove(this);
                 parentChildren.Insert(0, this);
 
-                LayoutGroup layout = Layout as LayoutGroup;
-                layout?.ChangeLayoutSiblingOrder(0);
+                Layout?.ChangeLayoutSiblingOrder(0);
 
                 Interop.NDalic.LowerToBottom(SwigCPtr);
                 if (NDalicPINVOKE.SWIGPendingException.Pending)