Skip to content

Commit c6f317c

Browse files
committed
Fix orientation changes messing up layout
1 parent 17ad7bd commit c6f317c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

FSCalendar/FSCalendar.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ - (void)layoutSubviews
372372
[self.transitionCoordinator performScopeTransitionFromScope:FSCalendarScopeMonth toScope:FSCalendarScopeWeek animated:NO];
373373
}
374374

375+
// Fix for layout update issue when changing orientation, see: https://github.com/WenchaoD/FSCalendar/issues/895
376+
[_collectionViewLayout invalidateLayout];
375377
}
376378

377379
#if TARGET_INTERFACE_BUILDER

0 commit comments

Comments
 (0)