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 created with html data always takes up the whole screen #1297
Comments
Have you tried using a modifier on the composable? If so, which one? |
Yes, I tried using |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Describe the bug
As of right now the LayoutParams are created inside the WebView composable and cannot be changed. The layoutParams are MATCH_PARENT, so the result is that no matter how big is the html content is, it will always take up the whole screen.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The bottom sheet should be the height of the html content that was passed into the WebView.
Environment:
Additional context
My proposal is to pass the LayoutParams as the argument to the WebView, so the programmers would be able to configure it according to their needs.
The text was updated successfully, but these errors were encountered: