Skip to content

fix(webapp): make a fullscreen Mini App cover the screen - #2382

Open
kor-ka wants to merge 1 commit into
TelegramMessenger:masterfrom
kor-ka:fix-webapp-fullscreen
Open

kor-ka wants to merge 1 commit into
TelegramMessenger:masterfrom
kor-ka:fix-webapp-fullscreen

Conversation

@kor-ka

@kor-ka kor-ka commented Oct 19, 2026 •

Copy link
Copy Markdown

Motivation: Fix #2383

A fullscreen Mini App's sheet doesn't fully cover screen, so the system compositor keeps drawing chat under it every frame page changes.

Two things prevent it from covering chat completely:

Changes:

1. Landscape scale

AttachmentContainer.update sets scaleProgress to 1 in landscape, so every sheet is scaled - chat shows strips at sides, top and bottom.

Fix: scaleProgress is 0 in landscape.

2. Rounded corners

A fullscreen sheet keeps its rounded clip corners.

Fix: introduce updateCornerRadius - make corners square while a fullscreen sheet is at top and nothing moves it, rounded when something does.

Screenshots

before after
prod_landscape_webapp fix_landscape_webapp

Measurement

Tool: Instruments, Metal System Trace
Hardware: iPhone 14 Plus (A15), iOS 26.6.2, landscape
Content: 3D game webGPU/JS

prod fix
Screenshot 2026-10-20 at 00 32 13 Screenshot 2026-10-20 at 00 32 17
approaching capacity can squeeze a bit more
metric\build master fix
backboardd GPU time per frame 5.97 ms 1.31 ms
framebuffer writes per frame 4 2
GPU active 56% 30%

Tested

iPhone 14 Plus, iOS 26.6.2,
portrait and landscape: a fullscreen Mini App covers the screen edge to edge
portrait: Mini App corners are rounded while it moves

fix_animation.MP4

Out of scope, but nice

Attachment menu gaps are also fixed in landscape as a side effect

before after
prod_landscape_attachment_menu fix_landscape_attach
@kor-ka kor-ka changed the title fix(webapp): make a fullscreen Mini App cover the screen Oct 19, 2026
@kor-ka kor-ka changed the title fix(webapp): make a fullscreen Mini App cover the screen Fix #2383 Oct 19, 2026
@kor-ka
kor-ka marked this pull request as ready for review October 19, 2026 23:05
@CLAassistant

CLAassistant commented Oct 24, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@kor-ka
kor-ka force-pushed the fix-webapp-fullscreen branch from dda2805 to 7f750ee Compare October 27, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants