Skip to content

Commit 94689a0

Browse files
committed
Merge pull request m1entus#63 from Workpop/master
Fix for INSInfiniteScrollBackground showing in the wrong place
2 parents f5c49b9 + b4c1d43 commit 94689a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

INSPullToRefresh/INSInfiniteScrollBackgroundView.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ - (void)changeState:(INSInfiniteScrollBackgroundViewState)state {
212212
}
213213

214214
- (CGFloat)adjustedHeightFromScrollViewContentSize {
215+
if (self.scrollView.contentSize.height <= 0) {
216+
return 0;
217+
}
215218
CGFloat remainingHeight = self.bounds.size.height - self.scrollView.contentInset.top - self.scrollView.contentInset.bottom;
216219
if(self.scrollView.contentSize.height < remainingHeight) {
217220
return remainingHeight;

0 commit comments

Comments
 (0)