iOS:refact requestLayout logic
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user