CBStoreHouseRefreshControl icon indicating copy to clipboard operation
CBStoreHouseRefreshControl copied to clipboard

self.originalTopContentInset can't be zero

Open Psidium opened this issue 10 years ago • 8 comments

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

Psidium avatar Nov 08 '14 21:11 Psidium

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

coolbeet avatar Nov 09 '14 00:11 coolbeet

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

Psidium avatar Nov 09 '14 12:11 Psidium

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

roselifeye avatar Dec 06 '14 22:12 roselifeye

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?

mamouneyya avatar Jan 25 '15 22:01 mamouneyya

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

berion avatar Aug 26 '15 06:08 berion

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

silentred avatar Oct 23 '15 09:10 silentred

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

peiweichen avatar Jun 13 '16 03:06 peiweichen

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.

yangcongtougg avatar Nov 01 '16 07:11 yangcongtougg