Fix problem adding calendar in code
Fix problem adding calendar in code
This commit is contained in:
parent
cd1a25a7f7
commit
8a900ab3fa
|
|
@ -173,6 +173,7 @@
|
|||
_supressEvent = YES;
|
||||
CGFloat padding = self.fs_height * 0.01;
|
||||
_collectionView.frame = CGRectMake(0, kWeekHeight, self.fs_width, self.fs_height-kWeekHeight);
|
||||
_collectionView.contentInset = UIEdgeInsetsZero;
|
||||
_collectionViewFlowLayout.itemSize = CGSizeMake(
|
||||
_collectionView.fs_width/7-(_flow == FSCalendarFlowVertical)*0.1,
|
||||
(_collectionView.fs_height-padding*2)/6
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@
|
|||
{
|
||||
[super layoutSubviews];
|
||||
_collectionView.frame = self.bounds;
|
||||
_collectionView.contentInset = UIEdgeInsetsZero;
|
||||
_collectionViewFlowLayout.itemSize = CGSizeMake(self.fs_width * 0.5,
|
||||
self.fs_height);
|
||||
CGFloat scrollOffset = self.scrollOffset;
|
||||
|
|
|
|||
Loading…
Reference in New Issue