Fix page styleScope for iOS

This commit is contained in:
Hristo Hristov
2018-01-12 12:43:55 +02:00
parent ef86addd6d
commit 3f2f5f41f0

View File

@@ -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.");