[NUI] make GridLayout.Orientation default value as Horizontal (#1828)
authorYeongJong Lee <cleanlyj@naver.com>
Wed, 15 Jul 2020 06:05:36 +0000 (15:05 +0900)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2020 06:05:36 +0000 (15:05 +0900)
Before commit c04eaacb3186b0ea9e499d7a930b10e074134d32, child was added
from left to right by default. but now they are added from top to
bottom.
This patch reverts auto-placement rule to keep backward compatibility.

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

index 228f03258c1a3256f33745f654fae6a28ec48ad5..82f344649a545730a0c306645917921640c3a1f4 100755 (executable)
@@ -75,7 +75,7 @@ namespace Tizen.NUI
         public static readonly BindableProperty VerticalAlignmentProperty = BindableProperty.CreateAttached("VerticalAlignment", typeof(Alignment), typeof(GridLayout), Alignment.Start, propertyChanged: OnChildPropertyChanged);
 
         private const int CellUndefined = int.MinValue;
-        private Orientation gridOrientation = Orientation.Vertical;
+        private Orientation gridOrientation = Orientation.Horizontal;
         private int columns = 1;
         private int rows = 1;
         private float columnSpacing = 0;