Merge branch 'bugfix/scrollview_content_adjustment_fix' into 'develop'

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

See merge request BPHV_MIPS/mvm_core_ui!187
This commit is contained in:
Pfeil, Scott Robert 2019-11-27 14:03:52 -05:00
commit 0915333878

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