Fix bug that could alter frame of UICollectionViews on first hiding of nav bar

This commit is contained in:
Benjamin Breier 2016-01-15 17:21:14 -08:00
parent fa4b25e4bf
commit 2bca45f16d
1 changed files with 1 additions and 1 deletions

View File

@ -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))