Skip to content

Commit

Permalink
Fix for vertical direction
Browse files Browse the repository at this point in the history
If row ends on a partial, then increase the height
  • Loading branch information
patchthecode committed Oct 29, 2016
1 parent 3368edb commit 4d48c59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/JTAppleCalendarLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ open class JTAppleCalendarLayout: UICollectionViewLayout,
xCellOffset = 0
yCellOffset += attribute.frame.height
contentHeight += attribute.frame.height
} else if totalDayCounter == delegate.totalDays {
contentHeight += attribute.frame.height
}
}
}
Expand Down

0 comments on commit 4d48c59

Please sign in to comment.