Skip to content

Commit

Permalink
Merge branch 'master' of github.com:toursprung/TSMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx committed Sep 3, 2013
2 parents d53a1ab + 389c4aa commit 0b452b0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions TSMessages/Classes/TSMessage.m
Expand Up @@ -195,8 +195,11 @@ - (void)fadeInCurrentNotification
}
else
{
toPoint = CGPointMake(currentView.center.x,
currentView.viewController.view.bounds.size.height - CGRectGetHeight(currentView.frame) / 2.0);
CGFloat y = currentView.viewController.view.bounds.size.height - CGRectGetHeight(currentView.frame) / 2.0;
if (!currentView.viewController.navigationController.isToolbarHidden) {
y -= CGRectGetHeight(currentView.viewController.navigationController.toolbar.bounds);
}
toPoint = CGPointMake(currentView.center.x, y);
}

dispatch_block_t animationBlock = ^{
Expand Down

0 comments on commit 0b452b0

Please sign in to comment.