remove navigation bar check for manual inset calculation as it impacts presented controllers

This commit is contained in:
Hedden, Kyle Matthew 2019-11-27 14:03:51 -05:00 committed by Pfeil, Scott Robert
parent 88e079e6be
commit f5270ae12e

View File

@ -91,7 +91,7 @@ static NSTimeInterval const HandScrollAnimationTiming = 7.f;
- (void)viewDidLayoutSubviews {
[super viewDidLayoutSubviews];
BOOL automaticInset = self.navigationController && self.scrollView.contentInsetAdjustmentBehavior == UIScrollViewContentInsetAdjustmentAutomatic;
BOOL automaticInset = self.scrollView.contentInsetAdjustmentBehavior == UIScrollViewContentInsetAdjustmentAutomatic;
// Takes into account the navigation bar.
if (!automaticInset && (self.edgesForExtendedLayout & UIRectEdgeTop)) {