This is done automatically when I load my website in iOS Safari and Chrome, but not done when I load it in cordova. I'd prefer a non-JS solution if possible.
Use: https://github.com/driftyco/ionic-plugins-keyboard
with:
window.addEventListener 'native.keyboardshow', (e) ->
cur_height = $('body').height()
$('body').height cur_height - e.keyboardHeight
window.addEventListener 'native.keyboardhide', (e) ->
$('body').height '100%'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With