When changing the extension view to nil from it previously being set, appropriate changes are made once... but _handleScrolling is then called, leading to incorrect content offsets until the view is scrolled back to the top. Disabling scroll handling temporarily while laying out the views fixes the problem.

This commit is contained in:
Evan D. Schoenberg, M.D 2015-08-08 18:13:07 -04:00
parent 3f5707ebc5
commit a01f96db81
1 changed files with 4 additions and 1 deletions

View File

@ -362,8 +362,11 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
self.extensionViewContainer.frame = bounds;
[self.extensionViewContainer addSubview:view];
BOOL wasDisabled = self.disable;
self.disable = YES;
[self layoutViews];
self.disable = wasDisabled;
}
}