Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

Commit fa6917e

Browse files
committed
formatting
1 parent 2576960 commit fa6917e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

JSQMessagesViewController/Controllers/JSQMessagesViewController.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,10 @@ - (void)scrollToIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated
465465
// if last message is too long, use scroll position bottom for better appearance, else use top
466466
// possibly a UIKit bug, see #480 on GitHub
467467
CGSize cellSize = [self.collectionView.collectionViewLayout sizeForItemAtIndexPath:indexPath];
468-
CGFloat maxHeightForVisibleMessage = CGRectGetHeight(self.collectionView.bounds) -
469-
self.collectionView.contentInset.top -
470-
self.collectionView.contentInset.bottom -
471-
CGRectGetHeight(self.inputToolbar.bounds);
468+
CGFloat maxHeightForVisibleMessage = CGRectGetHeight(self.collectionView.bounds)
469+
- self.collectionView.contentInset.top
470+
- self.collectionView.contentInset.bottom
471+
- CGRectGetHeight(self.inputToolbar.bounds);
472472
UICollectionViewScrollPosition scrollPosition = (cellSize.height > maxHeightForVisibleMessage) ? UICollectionViewScrollPositionBottom : UICollectionViewScrollPositionTop;
473473

474474
[self.collectionView scrollToItemAtIndexPath:indexPath

0 commit comments

Comments
 (0)