Skip to content

Commit

Permalink
Merge pull request #50 from somethingkindawierd/master
Browse files Browse the repository at this point in the history
Fix calculation of navbar height
  • Loading branch information
cezarywojcik committed May 1, 2015
2 parents 6882883 + e700d78 commit d9d8c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CWStatusBarNotification/CWStatusBarNotification.m
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ - (CGRect)getNotificationLabelFrame

- (CGFloat)getNavigationBarHeight
{
if (UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation) ||
if (UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation) ||
UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return 44.0f;
}
Expand Down

0 comments on commit d9d8c1d

Please sign in to comment.