mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Allow any node to be identified in the flattened predicate search
This commit is contained in:
@@ -1606,7 +1606,8 @@ static BOOL ShouldUseNewRenderingRange = YES;
|
||||
layout = [ASLayout layoutWithLayoutableObject:self size:layout.size sublayouts:@[layout]];
|
||||
}
|
||||
return [layout flattenedLayoutUsingPredicateBlock:^BOOL(ASLayout *evaluatedLayout) {
|
||||
return [_subnodes containsObject:evaluatedLayout.layoutableObject];
|
||||
return ASObjectIsEqual(layout, evaluatedLayout) == NO &&
|
||||
[evaluatedLayout.layoutableObject isKindOfClass:[ASDisplayNode class]];
|
||||
}];
|
||||
} else {
|
||||
// If neither -layoutSpecThatFits: nor -calculateSizeThatFits: is overridden by subclassses, preferredFrameSize should be used,
|
||||
|
||||
Reference in New Issue
Block a user