feat:fix iOS UIImageView wrapcontent

This commit is contained in:
pengfei.zhou
2019-11-20 13:52:30 +08:00
parent ff0d2d9a13
commit c8feaa37fc
5 changed files with 15 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ - (instancetype)initWithContext:(DoricContext *)doricContext {
- (void)initWithSuperNode:(DoricSuperNode *)superNode {
[super initWithSuperNode:superNode];
self.reusable = YES;
self.view.clipsToBounds = YES;
}
- (DoricStackView *)build {

View File

@@ -152,4 +152,7 @@ - (void)clearSubModel {
- (DoricViewNode *)subNodeWithViewId:(NSString *)viewId {
return nil;
}
- (void)requestLayout {
[self.view setNeedsLayout];
}
@end