From 1426660150dd3c81485781abea0c14e8a4e58965 Mon Sep 17 00:00:00 2001 From: "EverLEEst(SangHyeon Lee)" Date: Tue, 25 May 2021 16:11:08 +0900 Subject: [PATCH] [NUI] Fix item position to apply collectionView Padding --- .../Controls/RecyclerView/Layouter/LinearLayouter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/LinearLayouter.cs b/src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/LinearLayouter.cs index 1c5bd10..0a820f2 100755 --- a/src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/LinearLayouter.cs +++ b/src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/LinearLayouter.cs @@ -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)); -- 2.7.4