mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-12 07:21:06 +00:00
Escalate directly to yoga root rather than walking up (#1269)
This commit is contained in:
parent
86a853ea09
commit
bccdf83d2f
@ -268,12 +268,12 @@
|
||||
|
||||
- (void)calculateLayoutFromYogaRoot:(ASSizeRange)rootConstrainedSize
|
||||
{
|
||||
ASDisplayNode *yogaParent = self.yogaParent;
|
||||
ASDisplayNode *yogaRoot = self.yogaRoot;
|
||||
|
||||
if (yogaParent) {
|
||||
if (self != yogaRoot) {
|
||||
ASYogaLog("ESCALATING to Yoga root: %@", self);
|
||||
// TODO(appleguy): Consider how to get the constrainedSize for the yogaRoot when escalating manually.
|
||||
[yogaParent calculateLayoutFromYogaRoot:ASSizeRangeUnconstrained];
|
||||
[yogaRoot calculateLayoutFromYogaRoot:ASSizeRangeUnconstrained];
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user