File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ - (instancetype)initWithFrame:(CGRect)frame
4343 _scrollView.pagingEnabled = YES ;
4444 _scrollView.showsHorizontalScrollIndicator = NO ;
4545 _scrollView.showsVerticalScrollIndicator = NO ;
46+ _scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
4647
4748 [self addSubview: _scrollView];
4849
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ - (void)embed {
7878 _scrollView.pagingEnabled = YES ;
7979 _scrollView.showsHorizontalScrollIndicator = NO ;
8080 _scrollView.showsVerticalScrollIndicator = NO ;
81+ _scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
8182 [self addSubview: _scrollView];
8283
8384 _containerView = [[UIView alloc ] initWithFrame: self .bounds];
You can’t perform that action at this time.
0 commit comments