Telegram-iOS icon indicating copy to clipboard operation
Telegram-iOS copied to clipboard

[Mini Apps] Viewport height is incorrect on ios, when on-screen keyboard is opened

Open nikitabelotelov-ciliz opened this issue 8 months ago • 1 comments

Issue in Telegram-Mini-Apps repo

Checklist

  • [x] I am reporting an issue in existing functionality that does not work as intended
  • [x] I've searched for existing GitHub issues

Description

Incorrect viewport height on ios, when on-screen keyboard(OSK) is opened

Expected Behavior

window.Telegram.WebApp.viewportHeight should return correct height of viewport, when OSK is opened

Actual Behavior

window.Telegram.WebApp.viewportHeight returns the same value when OSK is opened or not

Steps to Reproduce

  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.

Environment

Device: iPhone

iOS version: 17.X

App version: 10.3.1

nikitabelotelov-ciliz avatar Dec 07 '23 19:12 nikitabelotelov-ciliz