Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug when scrollview has content inset top 0 #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mplulu
Copy link

@mplulu mplulu commented Nov 19, 2014

Using the refresh control with scrollview with content inset top 0 (can cause by self.edgesForExtendedLayout = UIRectEdgeNone;) will cause original content inset to be set as the content inset after the refresh control has started animating -> it will not go back to content inset 0. You can test it easily by comment out the line to set self.edgesForExtendedLayout in the sample project. To fix it, only set self.originalTopContentInset when state is still Idle (no pull refresh has occurred)

…he refresh control to use the inset after the animation init to set as the original content inset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant