Merge pull request #114 from bbreier/master

Fix issue #113
This commit is contained in:
Maz Jaleel 2016-01-30 10:22:07 +09:00
commit fb95964272
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@
CGFloat parentMaxY = [self.parent maxYRelativeToView:self.scrollView.superview]; CGFloat parentMaxY = [self.parent maxYRelativeToView:self.scrollView.superview];
CGFloat normalizedY = parentMaxY - self.scrollView.frame.origin.y; CGFloat normalizedY = parentMaxY - self.scrollView.frame.origin.y;
UIEdgeInsets insets = self.scrollView.contentInset; UIEdgeInsets insets = UIEdgeInsetsMake(self.scrollView.contentInset.top, 0, self.scrollView.contentInset.bottom, 0);
insets.top = normalizedY; insets.top = normalizedY;
if (normalizedY > -FLT_EPSILON && !UIEdgeInsetsEqualToEdgeInsets(insets, self.scrollView.contentInset)) if (normalizedY > -FLT_EPSILON && !UIEdgeInsetsEqualToEdgeInsets(insets, self.scrollView.contentInset))