Skip to content

Commit

Permalink
undod reload change
Browse files Browse the repository at this point in the history
  • Loading branch information
patchthecode committed Jul 17, 2017
1 parent 9d475f0 commit 215fa91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/JTAppleCalendarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ open class JTAppleCalendarView: UICollectionView {
if (collectionViewLayout as! JTAppleCalendarLayout).lastSetCollectionViewSize != frame {
// ive seen that layout subview gets called. Calendar is setup, and then it gets called again
// At this point, it already has generaed cells which needs to be invalidated.
reloadData()
calendarViewLayout.invalidateLayout()
layoutIfNeeded()
}

if !delayedExecutionClosure.isEmpty, isCalendarLayoutLoaded {
Expand Down

0 comments on commit 215fa91

Please sign in to comment.