Skip to content

Commit

Permalink
Lower the event height threshold for showing location label on the da…
Browse files Browse the repository at this point in the history
…y event calendar.
  • Loading branch information
devinross committed Mar 10, 2014
1 parent 9d72db0 commit 540bb38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TapkuLibrary/TKCalendarDayEventView.m
Expand Up @@ -109,7 +109,7 @@ - (void) layoutSubviews{


CGFloat h = self.frame.size.height; CGFloat h = self.frame.size.height;


if(h < 75){ if(h < 45){
self.titleLabel.frame = CGRectInset(self.bounds, 5, 5); self.titleLabel.frame = CGRectInset(self.bounds, 5, 5);
CGFloat y = self.titleLabel.frame.size.height + self.titleLabel.frame.origin.y; CGFloat y = self.titleLabel.frame.size.height + self.titleLabel.frame.origin.y;
self.locationLabel.frame = CGRectMake(self.titleLabel.frame.origin.x, y, 0, 0); self.locationLabel.frame = CGRectMake(self.titleLabel.frame.origin.x, y, 0, 0);
Expand Down

0 comments on commit 540bb38

Please sign in to comment.