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

hides navbar when displaying the keyboard #3156

Closed
tmwebs opened this issue Apr 26, 2019 · 3 comments
Closed

hides navbar when displaying the keyboard #3156

tmwebs opened this issue Apr 26, 2019 · 3 comments
Labels

Comments

@tmwebs
Copy link

tmwebs commented Apr 26, 2019

  • Framework7 version: 4.3.0
  • Platform and Target: iOS 12 Cordova app

Describe the bug

In version 2.0 I had it fixed, but I have updated to version 4.3 and again I have the problem with iOS

Expected behavior

the navbar and statusbar should remain fixed when opening the keyboard and not disappear.

Screenshots

Simulator Screen Shot - iPhone Xʀ - 2019-04-26 at 12 01 09
Simulator Screen Shot - iPhone Xʀ - 2019-04-26 at 12 06 59

Additional data

I'm using cordova-plugin-keyboard
my configuration is:

statusbar: {
iosOverlaysWebView: true,
iosTextColor: 'white',
overlay: true,
scrollTopOnClick: true,
androidOverlaysWebView: true,
androidTextColor: 'white',
androidBackgroundColor: '#00b34e'
},
input: {
scrollIntoViewOnFocus: true,
scrollIntoViewCentered: true,
},

Thanks you.

@nolimits4web
Copy link
Member

It is not F7 issue. Search on forum, there are plenty of solutions http://forum.framework7.io/

@tmwebs
Copy link
Author

tmwebs commented Apr 26, 2019

i have Keyboard.shrinkView(true); but this is the result
Captura de pantalla 2019-04-26 a las 12 47 43

@tmwebs
Copy link
Author

tmwebs commented Apr 27, 2019

I have solved it, the problem is that Keyboard.shrinkView(true) fails in iOS 12, I found the solution in this page:

cjpearson/cordova-plugin-keyboard#77

modifying the CDVKeyboard.m file of the plugin cordova-plugin-keyboard for this:

https://gist.github.com/mattio/ba5d77474e725463bc75cfbf1dba0cca

@lock lock bot added the outdated label Dec 23, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants