mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Merge branch 'master' into update-objc
Conflicts: AsyncDisplayKit/ASDisplayNode+Subclasses.h
This commit is contained in:
@@ -53,11 +53,13 @@
|
||||
- (void)setNeedsLayout
|
||||
{
|
||||
ASDisplayNodeAssertThreadAffinity(self);
|
||||
CGSize oldSize = self.calculatedSize;
|
||||
[super setNeedsLayout];
|
||||
|
||||
|
||||
if (_layoutDelegate != nil) {
|
||||
BOOL sizeChanged = !CGSizeEqualToSize(oldSize, self.calculatedSize);
|
||||
ASPerformBlockOnMainThread(^{
|
||||
[_layoutDelegate nodeDidRelayout:self];
|
||||
[_layoutDelegate nodeDidRelayout:self sizeChanged:sizeChanged];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user