-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Hello, I don't know if I can get the height of InAppWebView or make it adapt to the height of Html content. What do I need to do? #35
Comments
Did you find any idea? |
I had to add: |
@juliengit2 The code only allows HTML pages to be adapted to mobile devices, but the height is not the biggest. |
You can inject js code to do this, like:
But you still cannot set the height of InAppWebView to this height. It will crash on android because android (or flutter) doesn't support height more than device height. |
This may help you:
|
This can also give you same result.
|
but the above code does not work on android api version 22 devices. have you tried ? @sketcharsh @goYou |
I've not checked in android api version 22 devices. |
Hello, I don't know if I can get the height of InAppWebView or make it adapt to the height of Html content. What do I need to do?
The text was updated successfully, but these errors were encountered: