From: neostom432 <31119276+neostom432@users.noreply.github.com> Date: Mon, 30 Mar 2020 05:26:01 +0000 (+0900) Subject: [NUI] Add SetPositionByLayout Property (#1498) X-Git-Tag: accepted/tizen/5.5/unified/20200331.180250~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=199a5c9b112b45530f3cc865aec39801e7ca4bb4;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add SetPositionByLayout Property (#1498) * [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 --- 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); + } }