[NUI] Fix GridLayout logic (#1814)
authorneostom432 <31119276+neostom432@users.noreply.github.com>
Thu, 9 Jul 2020 07:38:25 +0000 (16:38 +0900)
committerGitHub <noreply@github.com>
Thu, 9 Jul 2020 07:38:25 +0000 (16:38 +0900)
Previously, children of GridLayout inherits top position of parents so if
positionY of GridLayout is not 0, the children are also moved same size.

Now, they don't inherit top position of parents.

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

index b18d01d..08be4fc 100755 (executable)
@@ -399,8 +399,8 @@ namespace Tizen.NUI
                 int row = child.Row.Start;
                 int columnEnd = child.Column.End;
                 int rowEnd = child.Row.End;
-                float l = hLocations[column] + left.AsDecimal() + Padding.Start;
-                float t = vLocations[row] + top.AsDecimal() + Padding.Top;
+                float l = hLocations[column] + Padding.Start;
+                float t = vLocations[row] + Padding.Top;
                 float width = hLocations[columnEnd] - hLocations[column] - ColumnSpacing;
                 float height = vLocations[rowEnd] - vLocations[row] - RowSpacing;