A brief bug description.
Scroll to a specific date and setting header background colors are not working if Pagination set to false.
I even tried with DIYExampleViewController in FSCalendar examples. Observed the same behaviour. Please let me is it a bug or I am missing something.
Integration method.
cocoapods
Full steps to reproduce.
calendar.pagingEnabled = false;
calendar.calendarHeaderView.backgroundColor = [UIColor brownColor] ;
[self.calendar selectDate:[self.dateFormatter dateFromString:@"2017-09-02"] scrollToDate:YES];
Device modal and iOS version.
Any device / simulator
Xcode version.
9.2
FSCalendar version.
2.7.9
Does this happen in the demo project? Which one? Or a link to another demo project.
Yes. DIYExampleViewController or Any other.
I found the work around by setting paging enabled true before calling selectDate:scrollToDate: and then setting paging enabled to false.
let indexPath = calendarView.calculator.indexPath(for: date)!
calendarView.collectionView.scrollToItem(at: indexPath, at: .centeredVertically, animated: false)
Most helpful comment
I found the work around by setting paging enabled true before calling selectDate:scrollToDate: and then setting paging enabled to false.