We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5c49b9 + b4c1d43 commit 94689a0Copy full SHA for 94689a0
INSPullToRefresh/INSInfiniteScrollBackgroundView.m
@@ -212,6 +212,9 @@ - (void)changeState:(INSInfiniteScrollBackgroundViewState)state {
212
}
213
214
- (CGFloat)adjustedHeightFromScrollViewContentSize {
215
+ if (self.scrollView.contentSize.height <= 0) {
216
+ return 0;
217
+ }
218
CGFloat remainingHeight = self.bounds.size.height - self.scrollView.contentInset.top - self.scrollView.contentInset.bottom;
219
if(self.scrollView.contentSize.height < remainingHeight) {
220
return remainingHeight;
0 commit comments