google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.38k stars 596 forks source link

[WebView] WebView wrapContent and static size not working #1650

Closed ashiqfury closed 1 year ago

ashiqfury commented 1 year ago

Description I have rendered a webpage, and I have set the WebView size to 150 dp, but the content takes full width. Likewise, wrapContentWidth is also not working; the content takes up the whole width. WebView always takes full width, whether it is set as wrapContentSize or static size.

Steps to reproduce

Surface {
    val state = rememberWebViewState("https://www.github.com/")
    WebView(
        state = state,
        modifier = Modifier
            .size(150.dp)
    )
}

Expected behavior I want the WebView to take width based on the content present in it, and when I set a static width or height, it should not overflow.

Additional context Accompanist - 0.31.3-beta kotlin - 1.8.10 compose - 1.4.0

V-Abhilash-1999 commented 1 year ago

I am also facing the same issue. Any update on this? @bentrengrove

github-actions[bot] commented 1 year ago

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.