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

cordova.plugins.Keyboard.shrinkView(true) does not consider StatusBar.overlaysWebView(false) #100

Open
mgoetz85 opened this issue Mar 30, 2020 · 2 comments

Comments

@mgoetz85
Copy link

I am using this keyboard plugin in a project together with the status-bar plugin (https://github.com/apache/cordova-plugin-statusbar).

I defined that the status-bar does not overlay the WebView via StatusBar.overlaysWebView(false) and it seems that this is not considered by cordova.plugins.Keyboard.shrinkView(true).
When I open the keyboard, the view shrinks but it is slipping under the statusbar.

I am testing on iPhone 11 Pro with iOS 13.4

Any idea?

@JoriJokinen
Copy link

Same problem here.

"Solution" was to manually hide and show Statusbar after keyboard hide:
window.addEventListener('keyboardDidHide', function () { StatusBar.hide(); StatusBar.show(); });

The same problem was with cordova camera-plugin.

@SinGlEBW
Copy link

In file CDVKeyboard.m edit comment code

if ([self settingForKey:@"StatusBarOverlaysWebView"] != nil && ![[self settingForKey:@"StatusBarOverlaysWebView"] boolValue]) { //CGRect full, remainder; //CGRectDivide(screen, &remainder, &full, statusBar.size.height, CGRectMinYEdge); //screen = full; }

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

No branches or pull requests

3 participants