Fix bug that could alter frame of UICollectionViews on first hiding of nav bar
This commit is contained in:
parent
fa4b25e4bf
commit
2bca45f16d
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
CGFloat parentMaxY = [self.parent maxYRelativeToView:self.scrollView.superview];
|
||||
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;
|
||||
|
||||
if (normalizedY > -FLT_EPSILON && !UIEdgeInsetsEqualToEdgeInsets(insets, self.scrollView.contentInset))
|
||||
|
|
|
|||
Loading…
Reference in New Issue