Skip to content

Commit

Permalink
Merge commit 'b29950a' into footer-fixes
Browse files Browse the repository at this point in the history
* commit 'b29950a':
  Fixed: In-call status bar may influence footer view.
  • Loading branch information
AlanQuatermain committed Jan 13, 2011
2 parents b11ca04 + b29950a commit 5995654
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Classes/AQGridView.m
Expand Up @@ -509,8 +509,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 5995654

Please sign in to comment.