From: huiyueun <35286162+huiyueun@users.noreply.github.com> Date: Fri, 13 Jul 2018 02:14:12 +0000 (+0900) Subject: [NUI] Fix NUI nested layout issue (#331) X-Git-Tag: 5.0.0.14562~156 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4dfe39c5a5708dcbc2bb136eea9024c189a37b45;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix NUI nested layout issue (#331) Signed-off-by: huiyu.eun --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index 32eadac..5c5b5c3 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -1289,8 +1289,11 @@ namespace Tizen.NUI.BaseComponents oldParent.Remove(child); } - LayoutItem layoutItem = new LayoutItem(); - child.Layout = layoutItem; + if (child.Layout == null) + { + LayoutItem layoutItem = new LayoutItem(); + child.Layout = layoutItem; + } NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child)); if (NDalicPINVOKE.SWIGPendingException.Pending)