This repository has been archived by the owner on Aug 14, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Wrong bubble width on iPad, iOS 9 #1212
Comments
I've noticed this in some weird cases, too. Are there any constraint errors that pop up when this happens? |
when you go to split view on iPad air 2, same thing happens |
Looking at this now, we really should respond to This makes the split screen multitasking work nicely: - (void)resetLayoutAndCaches {
JSQMessagesCollectionViewFlowLayoutInvalidationContext *context = [JSQMessagesCollectionViewFlowLayoutInvalidationContext context];
context.invalidateFlowLayoutMessagesCache = YES;
[self.collectionView.collectionViewLayout invalidateLayoutWithContext:context];
}
-(void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator {
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
[self resetLayoutAndCaches];
}
- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection {
[super traitCollectionDidChange:previousTraitCollection];
[self resetLayoutAndCaches];
} PR Incoming! @jessesquires. |
jessesquires
added a commit
that referenced
this issue
Nov 13, 2015
Implemented adaptive UIViewController responses to invalidate message bubble cache on size change. Fix #1212.
3 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When accessing Messages room with storyboard on iPad with iOS 9 (on both latest version of master branch and develop branch) the bubble width is wrong. Pls see the attached image.

This is not repro on iOS 8.
The text was updated successfully, but these errors were encountered: