Landscape orientation.

pull/1/head
Matthew Chen 6 years ago
parent 9497a38d76
commit 721cab7887

@ -4227,8 +4227,9 @@ typedef enum : NSUInteger {
{ {
OWSAssertIsOnMainThread(); OWSAssertIsOnMainThread();
if (oldSize.width != newSize.width) {
[self resetForSizeOrOrientationChange]; [self resetForSizeOrOrientationChange];
}
[self updateLastVisibleSortId]; [self updateLastVisibleSortId];
} }
@ -4771,6 +4772,8 @@ typedef enum : NSUInteger {
// Do nothing. // Do nothing.
} }
completion:^(id<UIViewControllerTransitionCoordinatorContext> context) { completion:^(id<UIViewControllerTransitionCoordinatorContext> context) {
// When transition animation is complete, update layout to reflect
// new size.
[weakSelf resetForSizeOrOrientationChange]; [weakSelf resetForSizeOrOrientationChange];
}]; }];

Loading…
Cancel
Save