mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-12 23:28:25 +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
|
- (void)calculateLayoutFromYogaRoot:(ASSizeRange)rootConstrainedSize
|
||||||
{
|
{
|
||||||
ASDisplayNode *yogaParent = self.yogaParent;
|
ASDisplayNode *yogaRoot = self.yogaRoot;
|
||||||
|
|
||||||
if (yogaParent) {
|
if (self != yogaRoot) {
|
||||||
ASYogaLog("ESCALATING to Yoga root: %@", self);
|
ASYogaLog("ESCALATING to Yoga root: %@", self);
|
||||||
// TODO(appleguy): Consider how to get the constrainedSize for the yogaRoot when escalating manually.
|
// TODO(appleguy): Consider how to get the constrainedSize for the yogaRoot when escalating manually.
|
||||||
[yogaParent calculateLayoutFromYogaRoot:ASSizeRangeUnconstrained];
|
[yogaRoot calculateLayoutFromYogaRoot:ASSizeRangeUnconstrained];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user