Commit 9de1eaa5 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

Library: don't invalidate collection view layout if not running on iPad

parent eb226196
......@@ -557,7 +557,9 @@
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
[super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
[self.collectionView.collectionViewLayout invalidateLayout];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
[self.collectionView.collectionViewLayout invalidateLayout];
}
@end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment