-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webview doesn't fillMaxSize with pullToRefresh #10
Comments
Its problem webview, not lib.
and already there I control
|
I know we talked about this on the previous issue, but I figured I'd open it so that others using the library know that this is an open issue. But essentially any webpage that should open full screen with centered content won't work with the webview.
i.e.
val initialUrl = "https://www.thelinehotel.com/wp-admin"
leads to a UI that looks like this
even though in a browser does take up the full screen
This seems to be a known issue with the original accompanist webview
See: https://stackoverflow.com/questions/75751943/implement-pullrefresh-on-top-of-webview-accompanist-in-compose
The only solution is seemingly to do the pull to refresh in using AndroidView as well, see https://stackoverflow.com/a/78096034/1048909
Ben Trengrove from google basically said here that they won't work on this google/accompanist#1670
I asked Ben about this ~last week and he said
So it seems like it has something to do with nested scrolling support. Since this is the "spiritual successor" to accompanist webview, I think it would be cool to have a webview in compose that can support pull to refresh like You can do in the View System. If I try to do webview + pull to refresh in the view system you can see that it works as expected.
The text was updated successfully, but these errors were encountered: