mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-06 17:27:54 +08:00
Add controller to closest parent on time so as to fix the automaticallyAdjustContentInsets feature.
Summary: Here's the bug to fix: https://github.com/facebook/react-native/issues/898 Closes https://github.com/facebook/react-native/pull/3509 Reviewed By: svcscm Differential Revision: D2574869 Pulled By: javache fb-gh-sync-id: 8d947c2a0edcfb695c2e209c7b44ae6417b6233e
This commit is contained in:
committed by
facebook-github-bot-4
parent
bc409ba2da
commit
772010a9af
@@ -417,6 +417,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
||||
- (void)layoutSubviews
|
||||
{
|
||||
[super layoutSubviews];
|
||||
[self reactAddControllerToClosestParent:_navigationController];
|
||||
_navigationController.view.frame = self.bounds;
|
||||
}
|
||||
|
||||
|
||||
@@ -80,6 +80,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
||||
- (void)layoutSubviews
|
||||
{
|
||||
[super layoutSubviews];
|
||||
[self reactAddControllerToClosestParent:_tabController];
|
||||
_tabController.view.frame = self.bounds;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user