iOS:fix yoga layout when is leaf,cause assertion
This commit is contained in:
parent
380673ef03
commit
5d306bbf67
@ -39,6 +39,9 @@ - (CGSize)sizeThatFits:(CGSize)size {
|
|||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
if (self.yoga.isLeaf) {
|
||||||
|
return CGSizeZero;
|
||||||
|
}
|
||||||
return [self.yoga intrinsicSize];
|
return [self.yoga intrinsicSize];
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
Reference in New Issue
Block a user