mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-11 08:50:24 +00:00
Pager should invalidate flow layout metrics on bounds change (#3133)
This commit is contained in:
parent
0de270fdfb
commit
2785a0bcd8
@ -101,4 +101,12 @@
|
|||||||
return [super shouldInvalidateLayoutForBoundsChange:newBounds];
|
return [super shouldInvalidateLayoutForBoundsChange:newBounds];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (UICollectionViewLayoutInvalidationContext *)invalidationContextForBoundsChange:(CGRect)newBounds
|
||||||
|
{
|
||||||
|
UICollectionViewFlowLayoutInvalidationContext *ctx = (UICollectionViewFlowLayoutInvalidationContext *)[super invalidationContextForBoundsChange:newBounds];
|
||||||
|
ctx.invalidateFlowLayoutDelegateMetrics = YES;
|
||||||
|
ctx.invalidateFlowLayoutAttributes = YES;
|
||||||
|
return ctx;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user