Telegram-Mini-Apps / issues

Centralised storage of platform issues and enhancement proposals.
5 stars 0 forks source link

Viewport height is incorrect on ios, when on-screen keyboard is opened #14

Open nikitabelotelov-ciliz opened 7 months ago

nikitabelotelov-ciliz commented 7 months ago

Platform

Select platforms where this bug is reproducible:

Describe the bug

window.Telegram.WebApp.viewportHeight returns incorrect value when on-screen keyboard(OSK) is opened. The value doesn't change either the OSK is opened or not.

To Reproduce

Steps to reproduce the behavior:

  1. Open @nb_bottle_bot from ios
  2. Open mini-app by clicking the menu button
  3. Click on input and check the window.Telegram.WebApp.viewportHeight value. It shows the same size as if OSK wasn't open.

    Expected behavior

window.Telegram.WebApp.viewportHeight returns correct visual viewport height

sergeevtoll commented 5 months ago

have you found any solutions?