Skip to content

Commit

Permalink
Merge pull request #27 from zhiyi7/master
Browse files Browse the repository at this point in the history
Use bounds instead of frame to determine the size of the view controller
  • Loading branch information
KrauseFx committed May 28, 2013
2 parents 00e998f + ef45252 commit 6111825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/TSMessage.m
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ - (void)fadeOutNotification:(TSMessageView *)currentView
else
{
fadeOutToPoint = CGPointMake(currentView.center.x,
currentView.viewController.view.frame.size.height);
currentView.viewController.view.bounds.size.height);
}

[UIView animateWithDuration:kTSMessageAnimationDuration animations:^
Expand Down
2 changes: 1 addition & 1 deletion Views/TSMessageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ - (id)initWithTitle:(NSString *)title

if (self.messagePosition == TSMessageNotificationPositionBottom)
{
topPosition = self.viewController.view.frame.size.height;
topPosition = self.viewController.view.bounds.size.height;
}

self.frame = CGRectMake(0.0, topPosition, screenWidth, actualHeight);
Expand Down

0 comments on commit 6111825

Please sign in to comment.