mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[ASDisplayNode] Fix an issue that causes a node to sometimes return an outdated calculated size or size range (#808)
This commit is contained in:
@@ -47,7 +47,12 @@ struct ASDisplayNodeLayout {
|
||||
*/
|
||||
ASDisplayNodeLayout()
|
||||
: layout(nil), constrainedSize({{0, 0}, {0, 0}}), parentSize({0, 0}), requestedLayoutFromAbove(NO), version(0) {};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this is valid for a given version
|
||||
*/
|
||||
BOOL isValid(NSUInteger version);
|
||||
|
||||
/**
|
||||
* Returns whether this is valid for a given constrained size, parent size, and version
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user