cordova-plugin-statusbar icon indicating copy to clipboard operation
cordova-plugin-statusbar copied to clipboard

overlaysWebView change the overlay not only status bar but the keyboard also

Open ryakoviv opened this issue 7 years ago • 8 comments

After calling StatusBar.overlaysWebView(true); keyboard also cover webview instead of resize it

ryakoviv avatar Sep 18 '18 10:09 ryakoviv

Platform? Versions of everything? (Cordova, Cordova Platform, Plugin, OS, Device...)

janpio avatar Sep 18 '18 11:09 janpio

platform Android Checked on Android 5.0, Android 6.0, Android 7.1 Cordova 8.0 (the latest)

ryakoviv avatar Sep 18 '18 15:09 ryakoviv

Same here, how to fix?

darkguy2008 avatar Sep 29 '18 10:09 darkguy2008

Can you provide a screenshot?

spinninghamster avatar Oct 06 '18 11:10 spinninghamster

I believe this might be related to #110

breautek avatar Dec 19 '18 14:12 breautek

@breautek yeah but any solutions?

tharunkumar0 avatar Dec 27 '18 07:12 tharunkumar0

@tharunkumar0 No, I spent a few hours playing with it, but I don't have much experience in native android development.

Here is what I do know...

The view gets a FULLSCREEN attribute, which appears to be necessary to get the overlay status bar, but it also messes up the keyboard functionality. The view has softInputMode of ADJUST_RESIZE, which tells the view to resize when the keyboard is visible. The problem is, ADJUST_RESIZE isn't compatible with the FULLSCREEN flag. So while FULLSCREEN flag is set, the keyboard will just appear above the view.

breautek avatar Dec 29 '18 00:12 breautek

This is related to https://issues.apache.org/jira/browse/CB-13300 and https://github.com/apache/cordova-plugin-statusbar/pull/128

If you don't want to wait for the PR to be merged, you use my fork in the meantime: cordova plugin add https://github.com/breautek/cordova-plugin-statusbar.git#issue-110-statusbar-overlay-keyboard-resize

breautek avatar Feb 04 '19 04:02 breautek