[NUI] Fix item position to apply collectionView Padding
authorEverLEEst(SangHyeon Lee) <sh10233.lee@samsung.com>
Tue, 25 May 2021 07:11:08 +0000 (16:11 +0900)
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Tue, 25 May 2021 07:34:58 +0000 (16:34 +0900)
src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/LinearLayouter.cs

index 1c5bd10..0a820f2 100755 (executable)
@@ -1495,7 +1495,7 @@ namespace Tizen.NUI.Components
             else
             {
                 int adjustIndex = index - (hasHeader ? 1 : 0);
-                float current = (hasHeader? headerSize : 0) + adjustIndex * StepCandidate;
+                float current = (IsHorizontal ? spaceStartX : spaceStartY) + (hasHeader? headerSize : 0) + adjustIndex * StepCandidate;
                 //FIXME : CandidateMargin need to be actual itemMargin
                 return ((IsHorizontal? current + CandidateMargin.Start : spaceStartX + CandidateMargin.Start),
                         (IsHorizontal? spaceStartY + CandidateMargin.Top : current + CandidateMargin.Top));