Skip to content

Commit

Permalink
Fixed: Footer position in Landscape mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoabits authored and AlanQuatermain committed Mar 5, 2011
1 parent d728b80 commit b4be4d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/AQGridView.m
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ - (void) setContentSize: (CGSize) newSize
if (self.gridFooterView)
{
// In-call status bar influences footer position
CGFloat statusHeight = CGRectGetHeight([UIApplication sharedApplication].statusBarFrame) - 20;
CGRect statusRect = [UIApplication sharedApplication].statusBarFrame;
CGFloat statusHeight = MIN(CGRectGetWidth(statusRect), CGRectGetHeight(statusRect)) - 20;

CGFloat footerHeight = CGRectGetHeight(self.gridFooterView.bounds);
CGFloat minimumHeight = statusHeight + CGRectGetHeight(self.bounds) + footerHeight;
Expand Down

0 comments on commit b4be4d7

Please sign in to comment.