Skip to content

Commit dc5329d

Browse files
maltenorstroemjanpio
authored andcommitted
CB-12875: (iOS) Pushes the inappbrowser window to a higher ui level than the existing apps window. (#284)
1 parent de86501 commit dc5329d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Thumbs.db
1111
*.log
1212
*.swp
1313
*.user
14+
*.idea
1415

1516
node_modules
1617

src/ios/CDVInAppBrowser.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,9 @@ - (void)show:(CDVInvokedUrlCommand*)command
244244
tmpWindow = [[UIWindow alloc] initWithFrame:frame];
245245
}
246246
UIViewController *tmpController = [[UIViewController alloc] init];
247+
double baseWindowLevel = [UIApplication sharedApplication].keyWindow.windowLevel;
247248
[tmpWindow setRootViewController:tmpController];
248-
[tmpWindow setWindowLevel:UIWindowLevelNormal];
249+
[tmpWindow setWindowLevel:baseWindowLevel+1];
249250

250251
[tmpWindow makeKeyAndVisible];
251252
[tmpController presentViewController:nav animated:YES completion:nil];

0 commit comments

Comments
 (0)