[NUI] fix wrong total expand value in expanded size calculation (#1833)
authorYeongJong Lee <cleanlyj@naver.com>
Thu, 16 Jul 2020 02:09:12 +0000 (11:09 +0900)
committerGitHub <noreply@github.com>
Thu, 16 Jul 2020 02:09:12 +0000 (11:09 +0900)
The result is reversed. `totalHorizontalExpand` should be used in
horizontal orientation.

src/Tizen.NUI/src/internal/Layouting/GridLocations.cs

index d0b90e9..7a72159 100755 (executable)
@@ -105,7 +105,7 @@ namespace Tizen.NUI
             Node[] edgeList = isHorizontal ? hEdgeList : vEdgeList;
             int maxIndex = isHorizontal ? maxColumnConut : maxRowCount;
             float space = isHorizontal ? ColumnSpacing : RowSpacing;
-            float totalExpand = isHorizontal ? totalVerticalExpand : totalHorizontalExpand;
+            float totalExpand = isHorizontal ? totalHorizontalExpand : totalVerticalExpand;
 
             float parentDecimalSize = parentSize.AsDecimal();
             float maxExpandedSize = parentDecimalSize * LayoutChildren.Count;