tomitank opened a new issue #787:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/787


   # Bug Report
   
   ## Problem
   
   In fullscreen mode the notifications of other apps and the statusbar swipe 
down resize the browser.
   
   ### What is expected to happen?
   
   In fullscreen mode the notifications of other apps and the statusbar swipe 
down resize the browser.
   
   ### What does actually happen?
   
   The statusbar size is resize the inappbrowser.
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   
   
   ### Command or Code
                   if (fullscreen) {
                       
dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
WindowManager.LayoutParams.FLAG_FULLSCREEN);
                   }
   
   
   ### Environment, Platform, Device
   Android
   
   
   
   ### Version information
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   
   ## SOLUTION
   ```
   I use this code for fix this issue.
                   if (fullscreen) {
                       
dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
WindowManager.LayoutParams.FLAG_FULLSCREEN);
                       
dialog.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE
 | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
                   }
   ```
   
   But:
   "This constant was deprecated in API level 30.
   Use WindowInsets#getInsetsIgnoringVisibility(int) instead to retrieve insets 
that don't change when system bars change visibility state. "


----------------------------------------------------------------
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:
[email protected]



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

Reply via email to