Skip to content

Commit

Permalink
Merge pull request #59 from segiddins/bugfix/toolbar
Browse files Browse the repository at this point in the history
Fix Message Underneath Toolbar
  • Loading branch information
KrauseFx committed Aug 28, 2013
2 parents c596d0d + 8efdc7a commit 389c4aa
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 389c4aa

Please sign in to comment.