You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We notice that FSCalendar doesn't redraw itself, after rotation, even we have update its height constraint and perform calendar.layoutIfNeeded()
Our intention is to have a full height calendar, whether it is in portrait or landscape mode.
We have the following code to handle height constraint within view controller.
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
let frame = self.view.safeAreaLayoutGuide.layoutFrame
let height = frame.height
if height != calendarHeightConstraint.constant {
calendarHeightConstraint.constant = frame.height
calendar.layoutIfNeeded()
}
}
Such code is capable to handle FSCalendar view height correctly. This is proven by the yellow background, which fill the entire parent height. (FSCalendar is the only component with yellow background)
However, as you can see in the video, the content of FSCalendar is not being "redraw", when changed from landscape mode to portrait mode.
Do you have any suggestion, on how we can fix this limitation?
Thank you.
The text was updated successfully, but these errors were encountered:
We notice that
FSCalendar
doesn't redraw itself, after rotation, even we have update its height constraint and performcalendar.layoutIfNeeded()
Our intention is to have a full height calendar, whether it is in portrait or landscape mode.
We have the following code to handle height constraint within view controller.
Such code is capable to handle
FSCalendar
view height correctly. This is proven by the yellow background, which fill the entire parent height. (FSCalendar
is the only component with yellow background)However, as you can see in the video, the content of
FSCalendar
is not being "redraw", when changed from landscape mode to portrait mode.Do you have any suggestion, on how we can fix this limitation?
Thank you.
The text was updated successfully, but these errors were encountered: