Skip to content

Commit

Permalink
修复 aspectFillMode 拖动偶现抖动的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang committed Aug 3, 2020
1 parent f557f16 commit a95c2d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DemoObjC/SJPageViewController/Demo/SJViewController0.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ - (NSUInteger)numberOfViewControllersInPageViewController:(SJPageViewController

- (UIViewController *)pageViewController:(SJPageViewController *)pageViewController viewControllerAtIndex:(NSInteger)index {
SJDemoTableViewController *vc = SJDemoTableViewController.new;
vc.tableView.mj_header.ignoredScrollViewContentInsetTop = 200;
vc.tableView.mj_header.ignoredScrollViewContentInsetTop = 300;
return vc;
}

Expand Down
2 changes: 1 addition & 1 deletion SJPageViewController.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'SJPageViewController'
s.version = '0.0.12'
s.version = '0.0.13'
s.summary = 'SJPageViewController.'

# This description is used to generate tags and improve search results.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ - (void)_insertHeaderViewForFocusedViewController {
// 停止滑动时, 将 headerView 恢复到 child scrollView 中
UIScrollView *childScrollView = self.focusedViewController.sj_pageItem.scrollView;
CGRect frame = [_headerView.superview convertRect:_headerView.frame toView:childScrollView];
frame.size = CGSizeMake(self.view.bounds.size.width, self.heightForHeaderBounds);
// frame.size = CGSizeMake(self.view.bounds.size.width, self.heightForHeaderBounds);
_headerView.frame = frame;
[childScrollView addSubview:_headerView];
}
Expand Down

0 comments on commit a95c2d4

Please sign in to comment.