iOS:refact requestLayout logic

This commit is contained in:
pengfei.zhou
2020-04-08 11:57:38 +08:00
committed by osborn
parent 95d9158fac
commit b17ff48c59
11 changed files with 27 additions and 46 deletions

View File

@@ -139,8 +139,7 @@ - (void)blend:(NSDictionary *)props {
}
[self afterBlended:props];
[self transformProperties];
[self requestLayout];
[self.gradientLayer also:^(CAGradientLayer* it) {
[self.gradientLayer also:^(CAGradientLayer *it) {
dispatch_async(dispatch_get_main_queue(), ^{
it.frame = CGRectMake(0, 0, self.view.width, self.view.height);
});
@@ -349,7 +348,6 @@ + (__kindof DoricViewNode *)create:(DoricContext *)context withType:(NSString *)
}
- (void)requestLayout {
[self.superNode requestLayout];
}
- (NSNumber *)getWidth {