~wpetit

Recent activity

Screen orientation and webview plugin 9 months ago

From William Petit to ~eliasnaur/gio

Hello everyone!

First of all, thank you for this incredible project!

I have a question about how orientation works on Android apps. I'm 
currently working on a project using the “webviewer” plugin 
(https://pkg.go.dev/github.com/gioui-plugins/gio-plugins/webviewer) and 
I can't get the resizing of the webview to work correctly when switching 
the phone. After the initial rendering, the webview component always 
seems to be “one frame behind” in its renderer dimensions.

I reproduce the same behavior with the demo application available here: 
https://github.com/gioui-plugins/gio-plugins/tree/main/webviewer/demo.