iOS:Fix nested use of FlexLayout

This commit is contained in:
pengfei.zhou
2020-04-13 11:57:31 +08:00
committed by osborn
parent d29ff4991d
commit 5a8a855f89
3 changed files with 16 additions and 9 deletions

View File

@@ -66,7 +66,6 @@ - (instancetype)init {
- (void)apply:(CGSize)frameSize {
self.resolved = NO;
[self measure:frameSize];
[self layout];
[self setFrame];
self.resolved = YES;
}
@@ -76,6 +75,11 @@ - (void)apply {
}
- (void)measure:(CGSize)targetSize {
[self measureSelf:targetSize];
[self layout];
}
- (void)measureSelf:(CGSize)targetSize {
CGFloat width;
CGFloat height;
if (self.widthSpec == DoricLayoutMost) {