iOS:fix ImageNode requestLayout
This commit is contained in:
parent
e689d52f26
commit
317cd115ab
@ -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]) {
|
||||||
|
Reference in New Issue
Block a user