Skip to content

Commit

Permalink
줄 바꿈 중 SectionInset 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JANGJINGWAN committed Mar 7, 2024
1 parent 4d9de12 commit 1e78a79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
.DS_Store
._.DS_Store
**/.DS_Store
**/._.DS_Store
4 changes: 2 additions & 2 deletions Sources/Layout/SheetContentsLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ extension SheetContentsLayout {
let itemSize = settings.itemSize?(cellIndexPath) ?? .zero
x += itemSize.width + (settings.sectionInteritemSpacing?(section) ?? minimumInteritemSpacing)

if x + sectionInset.right >= collectionView.bounds.width {
x = sectionInset.left
if x + currentSectionInset.right >= collectionView.bounds.width {
x = currentSectionInset.left
y += itemSize.height + (settings.sectionLineSpacing?(section) ?? minimumLineSpacing)
}

Expand Down

0 comments on commit 1e78a79

Please sign in to comment.