Skip to content

Commit

Permalink
Merge pull request #75 from mgratzer/master
Browse files Browse the repository at this point in the history
Fixes issue #72
  • Loading branch information
Roland Leth committed Aug 18, 2014
2 parents c7e9e57 + 4d746b8 commit b517ecd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LTHPasscodeViewController/LTHPasscodeViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,10 @@ - (void)showLockScreenWithAnimation:(BOOL)animated withLogout:(BOOL)hasLogout an
newCenter = CGPointMake(mainWindow.center.x,
mainWindow.center.y + self.navigationController.navigationBar.frame.size.height / 2);
}
if (![UIApplication sharedApplication].statusBarHidden) {
newCenter.y += [[UIApplication sharedApplication] statusBarFrame].size.height;

if (![[UIApplication sharedApplication] isStatusBarHidden]) {
newCenter.y += MIN([[UIApplication sharedApplication] statusBarFrame].size.height,
[[UIApplication sharedApplication] statusBarFrame].size.width);
}

if (animated) {
Expand Down

0 comments on commit b517ecd

Please sign in to comment.