Jasonette / JASONETTE-iOS

📡 Native App over HTTP, on iOS
https://www.jasonette.com
MIT License
5.26k stars 352 forks source link

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

Open hd-info opened 6 years ago

hd-info commented 6 years ago

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" },

ricardojlpinto commented 5 years ago

Hi, i've suggested a fix for this bug, you can follow it here: https://github.com/Jasonette/JASONETTE-iOS/pull/358