Skip to content

Commit f7fadfd

Browse files
committed
Fix grid spacing
1 parent 7c4bc31 commit f7fadfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/hoc/pagination_mvi/ui/main/MainFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class MainFragment : Fragment() {
9494
outRect.top = space
9595
outRect.bottom = 0
9696

97-
val column = position % maxSpanCount - 1
97+
val column = (position - 1) % maxSpanCount
9898
outRect.right = space * (column + 1) / maxSpanCount
9999
outRect.left = space - space * column / maxSpanCount
100100
}

0 commit comments

Comments
 (0)