Merge pull request #80 from evands/fix-hiding-extension-view

Fix nav bar position after hiding the extension view
This commit is contained in:
Maz Jaleel 2015-08-17 02:57:57 +04:00
commit 1f2517ed86
1 changed files with 6 additions and 1 deletions

View File

@ -362,8 +362,13 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
self.extensionViewContainer.frame = bounds; self.extensionViewContainer.frame = bounds;
[self.extensionViewContainer addSubview:view]; [self.extensionViewContainer addSubview:view];
/* Disable scroll handling temporarily while laying out views to avoid double-changing content
* offsets in _handleScrolling. */
BOOL wasDisabled = self.disable;
self.disable = YES;
[self layoutViews]; [self layoutViews];
self.disable = wasDisabled;
} }
} }