mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-15 18:59:54 +00:00
remove check for self.isNodeLoaded to fix layout issues of ASCellNodes in an ASCollectionView when being resized after calling setNeedsLayout()
This commit is contained in:
parent
fe30e3f5da
commit
7eca4f26cf
@ -163,7 +163,7 @@
|
||||
|
||||
- (void)didRelayoutFromOldSize:(CGSize)oldSize toNewSize:(CGSize)newSize
|
||||
{
|
||||
if (_layoutDelegate != nil && self.isNodeLoaded) {
|
||||
if (_layoutDelegate != nil) {
|
||||
ASPerformBlockOnMainThread(^{
|
||||
BOOL sizeChanged = !CGSizeEqualToSize(oldSize, newSize);
|
||||
[_layoutDelegate nodeDidRelayout:self sizeChanged:sizeChanged];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user