fix: scroller parent aware child size change
This commit is contained in:
parent
9fed9e431c
commit
9bf4072777
@ -123,7 +123,7 @@ - (void)afterBlended:(NSDictionary *)props {
|
|||||||
|
|
||||||
- (void)requestLayout {
|
- (void)requestLayout {
|
||||||
[self.childNode requestLayout];
|
[self.childNode requestLayout];
|
||||||
[self.view.contentView.doricLayout apply:self.view.frame.size];
|
[self.view.doricLayout apply:self.view.frame.size];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)blendView:(DoricScrollView *)view forPropName:(NSString *)name propValue:(id)prop {
|
- (void)blendView:(DoricScrollView *)view forPropName:(NSString *)name propValue:(id)prop {
|
||||||
|
@ -39,6 +39,7 @@ - (void)blendView:(UIView *)view forPropName:(NSString *)name propValue:(id)prop
|
|||||||
[self mixinSubNode:subModel];
|
[self mixinSubNode:subModel];
|
||||||
[self blendSubNode:subModel];
|
[self blendSubNode:subModel];
|
||||||
}
|
}
|
||||||
|
self.view.doricLayout.resolved = NO;
|
||||||
} else {
|
} else {
|
||||||
[super blendView:view forPropName:name propValue:prop];
|
[super blendView:view forPropName:name propValue:prop];
|
||||||
}
|
}
|
||||||
|
@ -186,6 +186,6 @@ - (void)reloadParagraphStyle {
|
|||||||
|
|
||||||
- (void)blend:(NSDictionary *)props {
|
- (void)blend:(NSDictionary *)props {
|
||||||
[super blend:props];
|
[super blend:props];
|
||||||
[self.view.superview setNeedsLayout];
|
self.view.doricLayout.resolved = NO;
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
Reference in New Issue
Block a user