mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix page styleScope for iOS
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user