[ 
https://issues.apache.org/jira/browse/CB-12875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16587148#comment-16587148
 ] 

ASF GitHub Bot commented on CB-12875:
-------------------------------------

janpio closed pull request #284: CB-12875: (iOS) Pushes the inappbrowser window 
to a higher UI level then the existing…
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/284
 
 
   

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/.gitignore b/.gitignore
index 4474e73b4..f63dbbf71 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 5bdb3e1eb..fcd8d984e 100644
--- a/src/ios/CDVInAppBrowser.m
+++ b/src/ios/CDVInAppBrowser.m
@@ -244,8 +244,9 @@ - (void)show:(CDVInvokedUrlCommand*)command
                 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];


 

----------------------------------------------------------------
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]


> iOS Magnifying glass is showing wrong content in iFrame
> -------------------------------------------------------
>
>                 Key: CB-12875
>                 URL: https://issues.apache.org/jira/browse/CB-12875
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-inappbrowser
>    Affects Versions: [email protected]
>            Reporter: Thom Eijken
>            Priority: Major
>         Attachments: IMG_5791.jpg, IMG_5792.jpg
>
>
> Our app is opening certain third party web pages using the inAppbrowser and 
> some of those pages (unfortunately) contain content in iFrames.
> The issue occurs on iOS when you push and hold the screen to select text or 
> use the magnifying glass to set the cursor in an input/textarea field. What 
> happens is that the magnifying glass doesn't actually show the content within 
> the iFrame, but it shows the content underneath the in-appbrowser (the page 
> that launched the in-appbrowser).
> I've created a very simple example to reproduce this. Just load test.html in 
> the in-appbrowser and use the magnifying glass inside the iframe.
> File: test.html
> <html>
> <body>
> <iframe height="500" width="500" src="iframe.html" style="border:2px solid 
> grey;"></iframe>
> </body>
> </html>
> File: iframe.html
> <html>
> <body>
>       <p>vhutriwbhrobh jbiortjtboirtw j bjrowijb iorwtj boirjgwobj org brw 
> jborjgiobj rojb org iob roi jboirtjwbiojrtowbj orjw bojrtobj rtj borjwiob 
> jrwio biorw b</p>
>       <textarea rows="4" cols="50">vhreiuvhuierf hviu ehv oueh vo qv 
> o</textarea>
> </body>
> </html>



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to