Skip to content

Commit

Permalink
Adding hot-fix for issue mentioned in comments: nytimes#221 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
benguild committed May 1, 2018
1 parent 735844b commit 024f8b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NYTPhotoViewer/NYTPhotosViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ - (void)viewWillLayoutSubviews {

CGRect frame = self.view.bounds;
if (self.underStatusBar) {
CGFloat statusBarHeight = [UIApplication sharedApplication].statusBarFrame.size.height;;
CGFloat statusBarHeight = [UIApplication sharedApplication].statusBarFrame.size.height;
frame.origin.y = statusBarHeight;
frame.size.height -= statusBarHeight;
}
self.pageViewController.view.frame = frame;
self.pageViewController.view.frame = self.view.bounds; // frame;
self.overlayView.frame = frame;
}

Expand Down

0 comments on commit 024f8b9

Please sign in to comment.