From b2b9bbf83005c1b82a668d954f8417d50943989b Mon Sep 17 00:00:00 2001 From: neostom432 <31119276+neostom432@users.noreply.github.com> Date: Mon, 30 Mar 2020 14:26:05 +0900 Subject: [PATCH] [NUI] Add SetPositionByLayout Property (#1497) * [NUI] Add SetPositionByLayout Property If true, set position by layouting result. If false, will not set position in SetFrame because it means it's parent like RecyclerList will set position. * [NUI] remove tizen tag from SetPositionByLayout --- src/Tizen.NUI/src/public/Layouting/LayoutItem.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Tizen.NUI/src/public/Layouting/LayoutItem.cs b/src/Tizen.NUI/src/public/Layouting/LayoutItem.cs index e29d518..7ad9b42 100755 --- a/src/Tizen.NUI/src/public/Layouting/LayoutItem.cs +++ b/src/Tizen.NUI/src/public/Layouting/LayoutItem.cs @@ -74,6 +74,12 @@ namespace Tizen.NUI public bool LayoutWithTransition{get; set;} /// + /// [Draft] Set position by layouting result + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool SetPositionByLayout{get;set;} = true; + + /// /// [Draft] Margin for this LayoutItem /// /// 6 @@ -535,7 +541,10 @@ namespace Tizen.NUI else { Owner.Size = new Size(right - left, bottom - top, Owner.Position.Z); - Owner.Position = new Position(left, top, Owner.Position.Z); + if(SetPositionByLayout) + { + Owner.Position = new Position(left, top, Owner.Position.Z); + } } -- 2.7.4