TelegramMessenger / Telegram-iOS

Telegram-iOS
5.51k stars 1.49k forks source link

[Mini Apps] Incorrect viewport shift when OSK is open #1298

Open nikitabelotelov-ciliz opened 7 months ago

nikitabelotelov-ciliz commented 7 months ago

Issue in telegram-mini-apps repo

Checklist

Description

There is an unexpected gap between the on-screen keyboard and the input field within a Telegram Mini App when the keyboard is active. The input field is intended to be positioned at the bottom of the screen, but upon activating the OSK, there is a visible space separating the two, which is not consistent with the expected UI layout.

Expected Behavior

The expected behavior is that when the on-screen keyboard is activated, the input field should align directly above the keyboard without any noticeable gaps.

Actual Behavior

There is a gap between OSK and input, when input is position at the bottom of the app.

Steps to Reproduce

  1. Open @nb_bottle_bot in telegram on ios
  2. Open mini app by clicking the menu button
  3. Focus on the input field to bring up the iOS on-screen keyboard.
  4. Observe that there is a gap between the bottom of the input field and the top of the on-screen keyboard.

Screenshot

image

Environment

Device: iPhone

iOS version: 17.X

App version: 10.3.1

filippgit commented 3 months ago

Seems connected to the issue I've just reported: #1385 The gap looks like it should be filled with a system keyboard's panel featuring two pagination buttons and a "Done" button