Skip to content

Commit

Permalink
Content inset bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
devindoty committed Oct 28, 2009
1 parent ad6483d commit e4de3da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Demo/TableViewPull/Classes/EGOTableViewPullRefresh.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL
[refreshHeaderView toggleActivityView];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.2];
self.contentInset = UIEdgeInsetsMake(60.0f, 0.0f, 40.0f, 0.0f);
self.contentInset = UIEdgeInsetsMake(60.0f, 0.0f, 00.0f, 0.0f);
[UIView commitAnimations];
}
}
Expand All @@ -63,7 +63,7 @@ - (void)dataSourceDidFinishLoadingNewData{
[refreshHeaderView flipImageAnimated:NO];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.3];
[self setContentInset:UIEdgeInsetsMake(0.0f, 0.0f, 40.0f, 0.0f)];
[self setContentInset:UIEdgeInsetsMake(0.0f, 0.0f, 00.0f, 0.0f)];
[refreshHeaderView setStatus:kPullToReloadStatus];
[refreshHeaderView toggleActivityView];
[UIView commitAnimations];
Expand Down
4 changes: 2 additions & 2 deletions EGOTableViewPullRefresh/Classes/EGOTableViewPullRefresh.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL
[refreshHeaderView toggleActivityView];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.2];
self.contentInset = UIEdgeInsetsMake(60.0f, 0.0f, 40.0f, 0.0f);
self.contentInset = UIEdgeInsetsMake(60.0f, 0.0f, 0.0f, 0.0f);
[UIView commitAnimations];
}
}
Expand All @@ -63,7 +63,7 @@ - (void)dataSourceDidFinishLoadingNewData{
[refreshHeaderView flipImageAnimated:NO];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.3];
[self setContentInset:UIEdgeInsetsMake(0.0f, 0.0f, 40.0f, 0.0f)];
[self setContentInset:UIEdgeInsetsMake(0.0f, 0.0f, 0.0f, 0.0f)];
[refreshHeaderView setStatus:kPullToReloadStatus];
[refreshHeaderView toggleActivityView];
[UIView commitAnimations];
Expand Down

0 comments on commit e4de3da

Please sign in to comment.