janpio closed pull request #273: CB-NOBUG: (iOS) improvement for UI
debugging/visualization
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/273
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m
index c65e3e150..550ba3405 100644
--- a/src/ios/CDVInAppBrowser.m
+++ b/src/ios/CDVInAppBrowser.m
@@ -33,6 +33,14 @@ Licensed to the Apache Software Foundation (ASF) under one
#define LOCATIONBAR_HEIGHT 21.0
#define FOOTER_HEIGHT ((TOOLBAR_HEIGHT) + (LOCATIONBAR_HEIGHT))
+#pragma mark CDVWindow
+
+@interface CDVWindowForInAppBrowser : UIWindow
+@end
+
+@implementation CDVWindowForInAppBrowser
+@end
+
#pragma mark CDVInAppBrowser
@interface CDVInAppBrowser () {
@@ -240,7 +248,7 @@ - (void)show:(CDVInvokedUrlCommand*)command
dispatch_async(dispatch_get_main_queue(), ^{
if (weakSelf.inAppBrowserViewController != nil) {
CGRect frame = [[UIScreen mainScreen] bounds];
- UIWindow *tmpWindow = [[UIWindow alloc] initWithFrame:frame];
+ UIWindow *tmpWindow = [[CDVWindowForInAppBrowser alloc]
initWithFrame:frame];
UIViewController *tmpController = [[UIViewController alloc] init];
[tmpWindow setRootViewController:tmpController];
[tmpWindow setWindowLevel:UIWindowLevelNormal];
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]