From 3f2f5f41f0da1705ea02288960187b751ea9ac13 Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Fri, 12 Jan 2018 12:43:55 +0200 Subject: [PATCH] Fix page styleScope for iOS --- tns-core-modules/ui/page/page.ios.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tns-core-modules/ui/page/page.ios.ts b/tns-core-modules/ui/page/page.ios.ts index 27ece39d0..620efba61 100644 --- a/tns-core-modules/ui/page/page.ios.ts +++ b/tns-core-modules/ui/page/page.ios.ts @@ -99,6 +99,11 @@ class UIViewControllerImpl extends UIViewController { if (frame) { if (!owner.parent) { owner._frame = frame; + if (!frame._styleScope) { + // Make sure page will have styleScope even if frame don't. + owner._updateStyleScope(); + } + frame._addView(owner); } else if (owner.parent !== frame) { throw new Error("Page is already shown on another frame.");