iOS: fix List Crash when insert more rows

This commit is contained in:
pengfei.zhou
2023-04-03 14:18:37 +08:00
committed by jingpeng
parent e345aa8879
commit 1add0f564c
2 changed files with 10 additions and 10 deletions

View File

@@ -26,7 +26,7 @@
#import <yoga/Yoga.h>
@interface YGLayout ()
@property (nonatomic, assign, readonly) YGNodeRef node;
@property(nonatomic, assign, readonly) YGNodeRef node;
@end
void DoricAddEllipticArcPath(CGMutablePathRef path,
@@ -1537,9 +1537,9 @@ - (void)layoutFlex {
layout.measuredX = YGNodeLayoutGetLeft(child.yoga.node);
layout.measuredY = YGNodeLayoutGetTop(child.yoga.node);
[layout measureWidth:DoricMeasureSpecMake(DoricMeasureExactly,
YGNodeLayoutGetWidth(child.yoga.node))
YGNodeLayoutGetWidth(child.yoga.node))
height:DoricMeasureSpecMake(DoricMeasureExactly,
YGNodeLayoutGetHeight(child.yoga.node))];
YGNodeLayoutGetHeight(child.yoga.node))];
[layout layout];
}
}