[NUI] Change RelativeLayout's default offset values
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Sun, 18 Jul 2021 18:50:23 +0000 (03:50 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 19 Jul 2021 09:01:03 +0000 (18:01 +0900)
To refer the parent layout's area by default, RightRelativeOffset and
BottomRelativeOffset are changed from 0.0f to 1.0f.

src/Tizen.NUI/src/public/Layouting/RelativeLayout.cs

index 9771532..08f57a8 100755 (executable)
@@ -60,7 +60,7 @@ namespace Tizen.NUI
         /// RightRelativeOffsetProperty
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public static readonly BindableProperty RightRelativeOffsetProperty = BindableProperty.CreateAttached("RightRelativeOffset", typeof(float), typeof(RelativeLayout), 0.0f, propertyChanged: OnChildPropertyChanged);
+        public static readonly BindableProperty RightRelativeOffsetProperty = BindableProperty.CreateAttached("RightRelativeOffset", typeof(float), typeof(RelativeLayout), 1.0f, propertyChanged: OnChildPropertyChanged);
 
         /// <summary>
         /// TopRelativeOffsetProperty
@@ -72,7 +72,7 @@ namespace Tizen.NUI
         /// BottomRelativeOffsetProperty
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public static readonly BindableProperty BottomRelativeOffsetProperty = BindableProperty.CreateAttached("BottomRelativeOffset", typeof(float), typeof(RelativeLayout), 0.0f, propertyChanged: OnChildPropertyChanged);
+        public static readonly BindableProperty BottomRelativeOffsetProperty = BindableProperty.CreateAttached("BottomRelativeOffset", typeof(float), typeof(RelativeLayout), 1.0f, propertyChanged: OnChildPropertyChanged);
 
         /// <summary>
         /// HorizontalAlignmentProperty