Skip to content

Commit

Permalink
Fixed: In-call status bar may influence footer view.
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoabits committed Jan 11, 2011
1 parent a337fa9 commit b29950a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Classes/AQGridView.m
Expand Up @@ -489,8 +489,11 @@ - (void) setContentSize: (CGSize) newSize

if (self.gridFooterView)
{
// In-call status bar influences footer position
CGFloat statusHeight = CGRectGetHeight([UIApplication sharedApplication].statusBarFrame) - 20;

CGFloat footerHeight = CGRectGetHeight(self.gridFooterView.bounds);
CGFloat minimumHeight = CGRectGetHeight(self.bounds) + footerHeight;
CGFloat minimumHeight = statusHeight + CGRectGetHeight(self.bounds) + footerHeight;
if (newSize.height < footerHeight + minimumHeight)
newSize.height = minimumHeight;
}
Expand Down

0 comments on commit b29950a

Please sign in to comment.