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:
parent
3f5707ebc5
commit
a01f96db81
|
@ -363,7 +363,10 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue