From: Jaehyun Cho Date: Thu, 3 Jun 2021 05:39:52 +0000 (+0900) Subject: [NUI] Add SpaceEvenly to FlexJustification X-Git-Tag: submit/tizen_6.0/20210609.151847~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9589d00c83762512c5dbee73756141b3dfb5f9e;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add SpaceEvenly to FlexJustification SpaceAround distributes the equal space to before, and after each item. Therefore, the space between adjacent items is twice bigger than the space between the beginning edge and the first item. To distribute the equal space to before, between, and after each item, SpaceEvenly is added to FlexJustification. Requires: https://review.tizen.org/gerrit/259554/ --- diff --git a/src/Tizen.NUI/src/public/Layouting/FlexLayout.cs b/src/Tizen.NUI/src/public/Layouting/FlexLayout.cs index bf7f758..51f877f 100755 --- a/src/Tizen.NUI/src/public/Layouting/FlexLayout.cs +++ b/src/Tizen.NUI/src/public/Layouting/FlexLayout.cs @@ -379,7 +379,7 @@ namespace Tizen.NUI get => (FlexJustification)Interop.FlexLayout.FlexLayout_GetFlexJustification(swigCPtr); set { - if (value < FlexJustification.FlexStart || value > FlexJustification.SpaceAround) + if (value < FlexJustification.FlexStart || value > FlexJustification.SpaceEvenly) throw new InvalidEnumArgumentException(nameof(Justification)); Interop.FlexLayout.FlexLayout_SetFlexJustification(swigCPtr, (int)value); @@ -498,11 +498,16 @@ namespace Tizen.NUI /// SpaceBetween, /// + /// Items are positioned with equal space before, and after the lines.
+ ///
+ SpaceAround, + /// /// Items are positioned with equal space before, between, and after the lines.
- /// Compared to using + /// Compared to using /// will result in space being distributed to the beginning of the first child and end of the last child. ///
- SpaceAround + [EditorBrowsable(EditorBrowsableState.Never)] + SpaceEvenly } ///