elrafael commented on issue #409: Resize the IAB
URL: 
https://github.com/apache/cordova-plugin-inappbrowser/issues/409#issuecomment-464113402
 
 
   If you'll need align in the top and close the inappbrowser browser outside 
the inappbrowser, you could do this (``InAppBrowser.java``)
   
   Search this code
   ```java
   dialog = new InAppBrowserDialog(cordova.getActivity(), 
android.R.style.Theme_NoTitleBar);
   dialog.getWindow().getAttributes().windowAnimations = 
android.R.style.Animation_Dialog;
   ```
   
   Replace with this
   ```java
   dialog = new InAppBrowserDialog(cordova.getActivity(), 
android.R.style.Theme_NoTitleBar);
   dialog.getWindow().getAttributes().windowAnimations = 
android.R.style.Animation_Dialog;
   dialog.getWindow().getAttributes().gravity = Gravity.TOP;
   ```
   
   And in this code block
   ```java
   dialog.setCancelable(true);
   ```
   
   Add this
   ```java
   dialog.setCanceledOnTouchOutside(true);
   ```

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

Reply via email to