From 923d48b23aa7127d12eca1e35223e626517abed2 Mon Sep 17 00:00:00 2001 From: Alexander Vakrilov Date: Wed, 24 Jan 2018 18:27:00 +0200 Subject: [PATCH] fix: layoutParent crash with ProxyViewContainer (#5315) --- tns-core-modules/ui/core/view/view.ios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules/ui/core/view/view.ios.ts b/tns-core-modules/ui/core/view/view.ios.ts index 439c9a017..ed668434e 100644 --- a/tns-core-modules/ui/core/view/view.ios.ts +++ b/tns-core-modules/ui/core/view/view.ios.ts @@ -688,7 +688,7 @@ export namespace ios { return; } - if (view instanceof View) { + if (view instanceof View && view.nativeViewProtected) { const frame = view.nativeViewProtected.frame; const origin = frame.origin; const size = frame.size;