-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Description
- A brief bug description.
- layout does not update when device rotates
- Stack trace.
- n/a
- Integration method.
(manually/cocoapods/carthage)
- cocoapods
- Full steps to reproduce.
- lay out a calendar with autolayout
- rotate device so that calendar frame changes
- expected: contents of calendar adjust so that month continues to fit, as stated in feature list https://github.com/WenchaoD/FSCalendar#safe-orientation
- actual: month may extend offscreen or multiple months may be partially visible
- workaround:
override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() calendar.setNeedsLayout() calendar.layoutIfNeeded() }
- Device modal and iOS version.
e.g. iPhone 6s iOS9.1
- ipad mini 6th gen simulator
- Xcode version.
e.g. Xcode 8.1
- 14.1
- FSCalendar version.
e.g. FSCalenda 2.5.1
- 2.8.4
- Does this happen in the demo project? Which one? Or a link to another demo project.
- don't know
loading on horizontal, switching to vertical:
loading on vertical, switching to horizontal:
n-studio, vzsg and ppamorim
Metadata
Metadata
Assignees
Labels
No labels