2

I need to know the actual visible height of my web app for different calculations.

I'm having a problem getting this height on iOS Safari when the soft keyboard is open, the height stays the same (by using window.innerHeight).

Is there any way to get the "new" screen size when the virtual keyboard is open?

mork
  • 89
  • 1
  • 10
  • Possible duplicate of [iOS7 Detect keyboard height with Javascript?](https://stackoverflow.com/questions/19148014/ios7-detect-keyboard-height-with-javascript) – Hydrothermal Jan 04 '19 at 18:17
  • @Hydrothermal Seems like the question answers on how to trigger the keyboard popping up which I have no problem with. There's a comment on the answer asking how to solve my problem. – mork Jan 04 '19 at 18:26

1 Answers1

-2

window height when the keyboard is shown = (window.innerHeight - keyboard.height) you can get the keyboard height in different ways depending on the plugin you are using

Valentin Garcia
  • 485
  • 6
  • 17