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

self.originalTopContentInset can't be zero #3

Open
Psidium opened this issue Nov 8, 2014 · 8 comments
Open

self.originalTopContentInset can't be zero #3

Psidium opened this issue Nov 8, 2014 · 8 comments

Comments

@Psidium
Copy link

Psidium commented Nov 8, 2014

In my project, the tableView's inset is supposed to be zero, but on line 128

    if (self.originalTopContentInset == 0) self.originalTopContentInset = self.scrollView.contentInset.top; 

don't let it be zero, setting originalTopContentInset to dropHeight value, moving the tableView down:

unknown

@coolbeet
Copy link
Owner

coolbeet commented Nov 9, 2014

have you try set viewController's automaticallyAdjustsScrollViewInsets to NO? by default that property change both inset and offset.

@Psidium
Copy link
Author

Psidium commented Nov 9, 2014

Same behavior. Commenting line 128 (letting it always be zero) fixed the issue for my project, but my project only.

@roselifeye
Copy link

I got the same problem. And I tried to unclick the automaticallyAdjustsScrollViewInsets. It still didn't work

@mamouneyya
Copy link

Commenting that line solves the same issue for me, too. Note that I've a non-translucent navigation bar, with automaticallyAdjustsScrollViewInsets set to NO for the view controller. Maybe it's related?

@berion
Copy link

berion commented Aug 26, 2015

I got the same issue with a scrollview in a container, but commenting the line, as @mamouneyya said, it's working fine.

@silentred
Copy link

same issue with tableView. First pulling adds the inset to the table view. Commenting this line works well.

@peiweichen
Copy link

peiweichen commented Jun 13, 2016

try https://github.com/peiweichen/SurfingRefreshControl swift-implemented, I make best use of dropHeight instead of originalTopContentInset.@silentred @coolbeet @wxxsw @StarClutch

@yangcongtougg
Copy link

Hello, whether this demo or own projects, can't return to the starting position after the drop-down, the view will be stuck, hope the author can repair.

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

8 participants