Skip to content

Commit

Permalink
Fixed issue.
Browse files Browse the repository at this point in the history
With vertical calendar, the height of all cells should be the same when there are no heads.
  • Loading branch information
patchthecode committed Oct 29, 2016
1 parent c61e802 commit 8e85b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/JTAppleCalendarLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ open class JTAppleCalendarLayout: UICollectionViewLayout,
}
height = (collectionView!.frame.height - headerSize.height) / CGFloat(numberOfRowsForSection)
} else {
if monthSection + 1 <= fullSections {
if monthSection + 1 <= fullSections || !thereAreHeaders {
numberOfRowsForSection = numberOfRows
} else {
numberOfRowsForSection = totalNumberOfRows - (monthSection * numberOfRows)
Expand Down

0 comments on commit 8e85b78

Please sign in to comment.