Fix some frame-size issue in iOS7
Fix some frame-size issue in iOS7
This commit is contained in:
parent
99367261bb
commit
c3a5acc60e
|
|
@ -196,7 +196,7 @@
|
|||
CGFloat height = kWeekHeight;
|
||||
[_weekdays enumerateObjectsUsingBlock:^(UILabel *weekdayLabel, NSUInteger idx, BOOL *stop) {
|
||||
NSUInteger absoluteIndex = ((idx-(_firstWeekday-1))+7)%7;
|
||||
weekdayLabel.frame = CGRectMake(absoluteIndex*weekdayLabel.fs_width,
|
||||
weekdayLabel.frame = CGRectMake(absoluteIndex*width,
|
||||
_header.fs_height,
|
||||
width,
|
||||
height);
|
||||
|
|
@ -486,7 +486,7 @@
|
|||
CGFloat height = kWeekHeight;
|
||||
[_weekdays enumerateObjectsUsingBlock:^(UILabel *weekdayLabel, NSUInteger idx, BOOL *stop) {
|
||||
NSUInteger absoluteIndex = ((idx-(_firstWeekday-1))+7)%7;
|
||||
weekdayLabel.frame = CGRectMake(absoluteIndex*weekdayLabel.fs_width,
|
||||
weekdayLabel.frame = CGRectMake(absoluteIndex * width,
|
||||
_header.fs_height,
|
||||
width,
|
||||
height);
|
||||
|
|
|
|||
Loading…
Reference in New Issue