fix-next(ios): handle nesting in proxyViewContainer ng (#6475)

This commit is contained in:
Martin Yankov
2018-10-30 14:00:00 +02:00
committed by dtopuzov
parent 206cc53fd6
commit e20d85f84f
2 changed files with 4 additions and 2 deletions

View File

@ -892,9 +892,10 @@ export namespace ios {
let parent = tabView && tabView.parent;
// Handle Angular scenario where TabView is in a ProxyViewContainer
// It is possible to wrap components in ProxyViewContainers indefinitely
// Not using instanceof ProxyViewContainer to avoid circular dependency
// TODO: Try moving UILayoutViewController out of view module
if (parent && !parent.nativeViewProtected) {
while (parent && !parent.nativeViewProtected) {
parent = parent.parent;
}

View File

@ -227,9 +227,10 @@ class UIViewControllerImpl extends UIViewController {
let frameParent = frame && frame.parent;
// Handle Angular scenario where TabView is in a ProxyViewContainer
// It is possible to wrap components in ProxyViewContainers indefinitely
// Not using instanceof ProxyViewContainer to avoid circular dependency
// TODO: Try moving UIViewControllerImpl out of page module
if (frameParent && !frameParent.nativeViewProtected) {
while (frameParent && !frameParent.nativeViewProtected) {
frameParent = frameParent.parent;
}