Jasonette / Jasonette/JASONETTE-iOS

Orientation change does not resize the web view for background web container

Open
#352 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.2k
Forks
347
PR merge metrics
No merged PRs in 30d

Description

If I have body background html with url to some web page, upon orienting device to landscape, the web-view that is holding the page retains it's previous, portrait width.
This works on Android because page is reloaded automatically when orientation changes.
If on iOS I put:
"$foreground": {
"type": "$reload"
},
then after minimizing and restoring the app again reload action is triggered and web view resizes to full landscape width.

The best would be to do the same as on Android or you can finally implement $resize event that was proposed year and a half ago so I can put
"$resize": {
"type": "$reload"
},

Contributor guide

Open the contributing guide

Research direction

Start with the iOS orientation-handling path and the background web container, then inspect how the existing $foreground/$reload action is triggered. Done means the web view expands to the landscape width after device rotation without requiring the app to be minimized and restored.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.