diff --git a/Chatto/Source/ChatController/BaseChatViewController.swift b/Chatto/Source/ChatController/BaseChatViewController.swift index e94221ce..53ed6ab6 100644 --- a/Chatto/Source/ChatController/BaseChatViewController.swift +++ b/Chatto/Source/ChatController/BaseChatViewController.swift @@ -588,6 +588,7 @@ extension BaseChatViewController { // Rotation let shouldScrollToBottom = self.isScrolledAtBottom() let referenceIndexPath = collectionView.indexPathsForVisibleItems.first let oldRect = self.rectAtIndexPath(referenceIndexPath) + collectionView.collectionViewLayout.invalidateLayout() coordinator.animate(alongsideTransition: { (_) -> Void in if shouldScrollToBottom { self.scrollToBottom(animated: false)