Fix size problems

Fix size problems
This commit is contained in:
dingwenchao 2016-03-14 18:20:11 +08:00
parent 77560b2fd4
commit e0fca5ab3f
3 changed files with 3 additions and 3 deletions

View File

@ -152,7 +152,6 @@
[UIView setAnimationDuration:duration];
self.collectionView.fs_top = -focusedRowNumber*self.calendar.preferredRowHeight;
self.calendar.bottomBorder.fs_top = CGRectGetMaxY(targetBounds);
NSLog(@"%f",CGRectGetMaxY(targetBounds));
if ([self.calendar.delegate respondsToSelector:@selector(calendar:boundingRectWillChange:animated:)]) {
[self.calendar.delegate calendar:self.calendar boundingRectWillChange:targetBounds animated:animated];
} else {

View File

@ -31,7 +31,8 @@
{
[super prepareLayout];
CGFloat rowHeight = self.calendar.preferredRowHeight;
// Round to nearest multiple of 0.5. e.g. (16.8->16.5), (16.2->16.0)
CGFloat rowHeight = FSCalendarFloor(self.calendar.preferredRowHeight*2)*0.5;
if (!self.calendar.floatingMode) {

View File

@ -294,7 +294,7 @@
- (void)invalidateHeaderFont
{
_titleLabel.font = self.header.appearance.headerTitleFont;
_titleLabel.font = self.header.appearance.preferredHeaderTitleFont;
}
- (void)invalidateHeaderTextColor