Skip to content

Commit 0b452b0

Browse files
committed
Merge branch 'master' of github.com:toursprung/TSMessages
2 parents d53a1ab + 389c4aa commit 0b452b0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

TSMessages/Classes/TSMessage.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,11 @@ - (void)fadeInCurrentNotification
195195
}
196196
else
197197
{
198-
toPoint = CGPointMake(currentView.center.x,
199-
currentView.viewController.view.bounds.size.height - CGRectGetHeight(currentView.frame) / 2.0);
198+
CGFloat y = currentView.viewController.view.bounds.size.height - CGRectGetHeight(currentView.frame) / 2.0;
199+
if (!currentView.viewController.navigationController.isToolbarHidden) {
200+
y -= CGRectGetHeight(currentView.viewController.navigationController.toolbar.bounds);
201+
}
202+
toPoint = CGPointMake(currentView.center.x, y);
200203
}
201204

202205
dispatch_block_t animationBlock = ^{

0 commit comments

Comments
 (0)