Content-Length: 274120 | pFad | http://github.com/NativeScript/NativeScript/commit/5f4d0e9b6f2884f86cb0edcea90d0986a41b32f6

C9 fix: always set the parent · NativeScript/NativeScript@5f4d0e9 · GitHub
Skip to content

Commit 5f4d0e9

Browse files
committed
fix: always set the parent
1 parent cb52301 commit 5f4d0e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/ui/core/view/index.ios.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -505,14 +505,15 @@ export class View extends ViewCommon implements ViewDefinition {
505505
const nativeView = this.ios || this.nativeViewProtected;
506506
controller = <IOSHelper.UILayoutViewController>IOSHelper.UILayoutViewController.initWithOwner(new WeakRef(this));
507507
controller.modal = true;
508-
this.parent = Application.getRootView();
509508

510509
if (nativeView instanceof UIView) {
511510
controller.view.addSubview(nativeView);
512511
}
513512

514513
this.viewController = controller;
515514
}
515+
// we set the parent to root to access all css root variables
516+
this.parent = Application.getRootView();
516517

517518
if (options.transition) {
518519
controller.modalPresentationStyle = UIModalPresentationStyle.Custom;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/NativeScript/commit/5f4d0e9b6f2884f86cb0edcea90d0986a41b32f6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy