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

Vladimir Kotikov commented on CB-10065:
---------------------------------------

This seems to be a known bug/feature in Android.See CB-4404 for the same 
problem (it is the same since StatusBar.hide in fact just enables fullscreen 
mode for actvivty). There is also a [corresponding bug in AOSP 
tracker|https://code.google.com/p/android/issues/detail?id=5497], which is 
closed as "working as intended" and a [FLAG_FULLSCREEN doc| 
http://developer.android.com/intl/ru/reference/android/view/WindowManager.LayoutParams.html#FLAG_FULLSCREEN]
 which states that windows won't be resized on keyboard toggle in fullscreen 
mode.

I've prototyped a workaround, based on using {{setSystemUiVisibility}} method, 
but there is a different problem - the keyboard, when displayed, forces status 
bar to be shown. However, after keyboard dismissal the status bar disappears 
again, but i think this is not a solution you want. Though you can try this 
patch here: https://github.com/MSOpenTech/cordova-plugin-statusbar/tree/CB-10065

Also you can try https://github.com/driftyco/ionic-plugin-keyboard to catch 
keyboard events and resize/scroll the contents of the page manually.



> StatusBar.show() stops soft keyboard from changing screen height
> ----------------------------------------------------------------
>
>                 Key: CB-10065
>                 URL: https://issues.apache.org/jira/browse/CB-10065
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Statusbar
>    Affects Versions: 5.3.3
>         Environment: Cordova StatusBar 1.0.1 and 2.0
>            Reporter: John Harrison
>              Labels: Android, reproduced
>
> After a call to {{StatusBar.hide()}} the soft keyboard no longer changes the 
> size of the screen ({{window.innerHeight}}  does not change) and the Window 
> {{resize}} callback is not called when the keyboard is shown. If 
> {{StatusBar.show()}} is called the resize callback works again and the screen 
> height {{window.innerHeight}} is changed appropriately. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to