You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/08/21 12:29:56 UTC

[GitHub] [cordova-plugin-inappbrowser] hamzasharuf commented on pull request #756: Add inappbrowser reposition and resize attributes

hamzasharuf commented on pull request #756:
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/756#issuecomment-678265349


   @PDLMobileApps The changes were tested on a simple app with some different components behind the browser dialog to test the ability to interact with them while the browser is still visible.
   
   When I tested it with the editable fields, I noticed this keyboard issue and it was fixed by adding the `FLAG_NOT_FOCUSABLE` which allows the dialog to receive touch events from the main webView. The changes don't affect the window's resizing behavior with the keyboard and it scrolls as usual.
   ```
   window.setFlags(LayoutParams.FLAG_NOT_FOCUSABLE,LayoutParams.FLAG_NOT_FOCUSABLE);
   ```
   However, for the gravity, it was assigned as follows
   ```
   wlp.gravity = Gravity.TOP | Gravity.LEFT;
   ```
   
   to make sure that the dialog's (X & Y) positions will start from the top left corner (not just from the top edge)
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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