feat:fix Nested slider

This commit is contained in:
pengfei.zhou
2019-12-07 10:59:20 +08:00
parent b67ba993b4
commit 50c31c4a14
3 changed files with 23 additions and 7 deletions

View File

@@ -54,7 +54,11 @@ @interface DoricScrollerNode ()
@implementation DoricScrollerNode
- (DoricScrollView *)build {
return [DoricScrollView new];
return [[DoricScrollView new] also:^(DoricScrollView *it) {
if (@available(iOS 11, *)) {
it.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}
}];
}
- (void)initWithSuperNode:(DoricSuperNode *)superNode {