commit
fb95964272
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue