G
G
Grione2020-11-05 15:46:57
iOS
Grione, 2020-11-05 15:46:57

How to get popup keyboard height on mobile devices in browser (ios)?

There is a web application. It is required to show the element strictly above the pop-up keyboard.
If with android this can be achieved through the viewport, then ios categorically does not see the keyboard and the size of the viewport, both with the keyboard and without it, does not change.
I tried to calculate the viewport through timeout, but it still does not change.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
batyrmastyr, 2020-11-06
@Grione

Try using VisualViewport - works since iOS 13, shows height minus keyboard height.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question