Skip to content

Commit 3f2f5f4

Browse files
Hristo HristovHristo Hristov
authored andcommitted
Fix page styleScope for iOS
1 parent ef86add commit 3f2f5f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tns-core-modules/ui/page/page.ios.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ class UIViewControllerImpl extends UIViewController {
9999
if (frame) {
100100
if (!owner.parent) {
101101
owner._frame = frame;
102+
if (!frame._styleScope) {
103+
// Make sure page will have styleScope even if frame don't.
104+
owner._updateStyleScope();
105+
}
106+
102107
frame._addView(owner);
103108
} else if (owner.parent !== frame) {
104109
throw new Error("Page is already shown on another frame.");

0 commit comments

Comments
 (0)