Telegram-iOS
Telegram-iOS copied to clipboard
[Mini Apps] Viewport height is incorrect on ios, when on-screen keyboard is opened
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
- Open @nb_bottle_bot from ios
- Open mini-app by clicking the menu button
- 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