mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
Fix typo in ASDisplayNode.
This commit is contained in:
parent
323136298c
commit
aea91fff86
@ -1371,7 +1371,7 @@ static NSInteger incrementIfFound(NSInteger i) {
|
||||
|
||||
struct Context {
|
||||
ASLayout *layout;
|
||||
CGPoint absoultePosition;
|
||||
CGPoint absolutePosition;
|
||||
BOOL visited;
|
||||
};
|
||||
|
||||
@ -1391,13 +1391,13 @@ static NSInteger incrementIfFound(NSInteger i) {
|
||||
ASDisplayNode *subnode = ((ASCompositeNode *)context.layout.node).displayNode;
|
||||
ASDisplayNodeAssertNotNil(subnode, "displayNode is required in ASCompositeNode.");
|
||||
|
||||
CGPoint subnodePosition = context.absoultePosition;
|
||||
CGPoint subnodePosition = context.absolutePosition;
|
||||
CGSize subnodeSize = context.layout.size;
|
||||
subnode.frame = CGRectMake(subnodePosition.x, subnodePosition.y, subnodeSize.width, subnodeSize.height);
|
||||
}
|
||||
|
||||
for (ASLayoutChild *child in context.layout.children) {
|
||||
stack.push({child.layout, context.absoultePosition + child.position, NO});
|
||||
stack.push({child.layout, context.absolutePosition + child.position, NO});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user