android: reset view node when reuse this node
This commit is contained in:
@@ -636,5 +636,8 @@ - (void)reset {
|
||||
self.errorColor = nil;
|
||||
self.errorImage = nil;
|
||||
self.errorImageBase64 = nil;
|
||||
self.imageScale = UIScreen.mainScreen.scale;
|
||||
self.blurEffectView = nil;
|
||||
self.view.contentMode = UIViewContentModeScaleAspectFill;
|
||||
}
|
||||
@end
|
||||
|
@@ -933,7 +933,11 @@ - (CAMediaTimingFunction *)translateToTimingFunction:(NSNumber *)timingFunction
|
||||
|
||||
- (void)reset {
|
||||
self.view.backgroundColor = UIColor.clearColor;
|
||||
DoricLayoutType doricLayoutType = self.view.doricLayout.layoutType;
|
||||
self.view.doricLayout = [[DoricLayout new] also:^(DoricLayout *it) {
|
||||
it.width = 0;
|
||||
it.height = 0;
|
||||
it.layoutType = doricLayoutType;
|
||||
it.view = self.view;
|
||||
}];
|
||||
|
||||
|
Reference in New Issue
Block a user