iOS:fix ImageNode requestLayout

This commit is contained in:
pengfei.zhou 2020-04-08 16:06:57 +08:00 committed by osborn
parent e689d52f26
commit 317cd115ab

View File

@ -24,6 +24,7 @@
#import "YYWebImage.h" #import "YYWebImage.h"
#import "DoricExtensions.h" #import "DoricExtensions.h"
#import "DoricUtil.h" #import "DoricUtil.h"
#import "DoricSuperNode.h"
@interface DoricImageView : YYAnimatedImageView @interface DoricImageView : YYAnimatedImageView
@end @end
@ -129,7 +130,11 @@ - (void)blendView:(UIImageView *)view forPropName:(NSString *)name propValue:(id
@{@"width": @(image.size.width), @"height": @(image.size.height)}, @{@"width": @(image.size.width), @"height": @(image.size.height)},
nil]; nil];
} }
[self requestLayout]; DoricSuperNode *node = self.superNode;
while (node.superNode != nil) {
node = node.superNode;
}
[node requestLayout];
} }
}]; }];
} else if ([@"scaleType" isEqualToString:name]) { } else if ([@"scaleType" isEqualToString:name]) {