You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2018/08/21 08:28:59 UTC

[cordova-plugin-inappbrowser] branch master updated: CB-12875: (iOS) Pushes the inappbrowser window to a higher ui level than the existing apps window. (#284)

This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-inappbrowser.git


The following commit(s) were added to refs/heads/master by this push:
     new dc5329d  CB-12875: (iOS) Pushes the inappbrowser window to a higher ui level than the existing apps window. (#284)
dc5329d is described below

commit dc5329d15757cca1c327e87a309fddbb58e554ed
Author: Malte Norström <ma...@gmail.com>
AuthorDate: Tue Aug 21 10:28:56 2018 +0200

    CB-12875: (iOS) Pushes the inappbrowser window to a higher ui level than the existing apps window. (#284)
---
 .gitignore                | 1 +
 src/ios/CDVInAppBrowser.m | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 4474e73..f63dbbf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@ Thumbs.db
 *.log
 *.swp
 *.user
+*.idea
 
 node_modules
 
diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m
index 5bdb3e1..fcd8d98 100644
--- a/src/ios/CDVInAppBrowser.m
+++ b/src/ios/CDVInAppBrowser.m
@@ -244,8 +244,9 @@
                 tmpWindow = [[UIWindow alloc] initWithFrame:frame];
             }
             UIViewController *tmpController = [[UIViewController alloc] init];
+            double baseWindowLevel = [UIApplication sharedApplication].keyWindow.windowLevel;
             [tmpWindow setRootViewController:tmpController];
-            [tmpWindow setWindowLevel:UIWindowLevelNormal];
+            [tmpWindow setWindowLevel:baseWindowLevel+1];
 
             [tmpWindow makeKeyAndVisible];
             [tmpController presentViewController:nav animated:YES completion:nil];


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org