initWithFrame:collectionViewLayout should also be intercepted
1. initWithFrame:collectionViewLayout should also be overriden 2. Reset stickyHeaders after orientation changing
This commit is contained in:
parent
fad2baf155
commit
28a09164a6
|
|
@ -650,7 +650,7 @@
|
|||
_needsAdjustingMonthPosition = YES;
|
||||
_needsAdjustingTextSize = YES;
|
||||
[_collectionViewLayout invalidateLayout]; // Necessary in Swift. Anyone can tell why?
|
||||
|
||||
[_stickyHeaderMapTable.dictionaryRepresentation.allValues setValue:@YES forKey:@"needsAdjustingFrames"];
|
||||
_preferedWeekdayHeight = FSCalendarAutomaticDimension;
|
||||
_preferedRowHeight = FSCalendarAutomaticDimension;
|
||||
_preferedHeaderHeight = FSCalendarAutomaticDimension;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,16 @@
|
|||
|
||||
@synthesize scrollsToTop = _scrollsToTop, contentInset = _contentInset;
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout
|
||||
{
|
||||
self = [super initWithFrame:frame collectionViewLayout:layout];
|
||||
if (self) {
|
||||
self.scrollsToTop = NO;
|
||||
self.contentInset = UIEdgeInsetsZero;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame
|
||||
{
|
||||
self = [super initWithFrame:frame];
|
||||
|
|
|
|||
Loading…
Reference in New Issue