Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ryakoviv opened this issue Sep 18, 2018 · 8 comments

Comments

@ryakoviv
Copy link

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

@janpio janpio added the support label Sep 18, 2018
@janpio
Copy link
Member

janpio commented Sep 18, 2018

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

@ryakoviv
Copy link
Author

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

@darkguy2008
Copy link

Same here, how to fix?

@spinninghamster
Copy link

Can you provide a screenshot?

@breautek
Copy link
Contributor

I believe this might be related to #110

@tharunkumar0
Copy link

@breautek yeah but any solutions?

@breautek
Copy link
Contributor

@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
Copy link
Contributor

breautek commented Feb 4, 2019

This is related to https://issues.apache.org/jira/browse/CB-13300 and #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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants