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

Does not respect contentInset #121

Open
joelekstrom opened this issue Apr 22, 2013 · 4 comments
Open

Does not respect contentInset #121

joelekstrom opened this issue Apr 22, 2013 · 4 comments

Comments

@joelekstrom
Copy link

The control should listen to contentInset changes of the scroll view and move accordingly, otherwise it will appear too far away from the table view content.

@bm-i
Copy link

bm-i commented Jul 9, 2013

+1

@jonasman
Copy link

+1
Any workaround ?

@jonasman
Copy link

As a workaround i changed a line the KVO method - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context;

I added my contentInset to this line:

   self.frame = CGRectMake(0, yOrigin -self.scrollView.contentInset.top, self.bounds.size.width, SVPullToRefreshViewHeight);

From:
self.frame = CGRectMake(0, yOrigin, self.bounds.size.width, SVPullToRefreshViewHeight);

It should be changed in more places, but since it doesn't matter I changed only when the table is scrolled.

@dismory
Copy link

dismory commented Oct 4, 2013

Please check #145

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

No branches or pull requests

4 participants