Skip to content

Commit

Permalink
Merge pull request #96 from koraktor/patch-1
Browse files Browse the repository at this point in the history
Fix message offset for nested controllers
  • Loading branch information
KrauseFx committed Jan 18, 2014
2 parents 14e56e4 + 26bf5b0 commit 30de915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TSMessages/Classes/TSMessage.m
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ - (void)fadeInCurrentNotification
currentNavigationController = (UINavigationController *)currentView.viewController.parentViewController;

BOOL isViewIsUnderStatusBar = [[[currentNavigationController childViewControllers] firstObject] wantsFullScreenLayout];
if (!isViewIsUnderStatusBar) {
if (!isViewIsUnderStatusBar && currentNavigationController.parentViewController == nil) {
isViewIsUnderStatusBar = ![currentNavigationController isNavigationBarHidden]; // strange but true
}
if (![currentNavigationController isNavigationBarHidden])
Expand Down

0 comments on commit 30de915

Please sign in to comment.