You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The webview height is not calculated correctly on some devices.
After running window.Telegram.WebApp.expand(); there is a bar in the bottom that covers the webview. The actual visible area looks like it matches the size of the app if its not expanded. After "pinching out" or "zooming out" everything goes away.
Expected Behavior
The inital load of the app should calculate the webview sizes correctly. It should display the whole all.
Actual Behavior
On initial load, only part of the webview is visible. (although all content under it is interactive, buttons work, input forms work). The bug is present even when not using .expand(), after expanding manually.
Steps to Reproduce
Create a webapp with 100vh (or equivalent)
Set the background color to something visible
Open the app through menu button(don't touch anything else)
Observe
Screenshots and Videos
Here are 2 examples on Iphone 11 Pro Max
Crypto-Iphone12ProMax.MP4TBank-Iphone12ProMax.MP4
And here are 2 working examples on Iphone 15 pro max
Crypto-Iphone15ProMax.MP4TBank-Iphone15ProMax.MP4
Environment
Device: IPhone 11 Pro Max
Workd well on IPhone 15 Pro Max
iOS version: 17.2.1
App version:11.1 (29584)
The text was updated successfully, but these errors were encountered:
Checklist
Description
The webview height is not calculated correctly on some devices.
After running
window.Telegram.WebApp.expand();
there is a bar in the bottom that covers the webview. The actual visible area looks like it matches the size of the app if its not expanded. After "pinching out" or "zooming out" everything goes away.Expected Behavior
The inital load of the app should calculate the webview sizes correctly. It should display the whole all.
Actual Behavior
On initial load, only part of the webview is visible. (although all content under it is interactive, buttons work, input forms work). The bug is present even when not using
.expand()
, after expanding manually.Steps to Reproduce
Screenshots and Videos
Here are 2 examples on Iphone 11 Pro Max
Crypto-Iphone12ProMax.MP4
TBank-Iphone12ProMax.MP4
And here are 2 working examples on Iphone 15 pro max
Crypto-Iphone15ProMax.MP4
TBank-Iphone15ProMax.MP4
Environment
Device: IPhone 11 Pro Max
Workd well on IPhone 15 Pro Max
iOS version:
17.2.1
App version:
11.1 (29584)
The text was updated successfully, but these errors were encountered: