0

We have an html content with an iframe, loaded inside a webview. When using chrome version 78, the content will render the first paragraphs at fist and then at a certain height will display blank and sometimes distorted text up until the bottom part.

To reproduce, place a webview inside a scrollview and load a content containing iframe tags, the webview wont load all of the content.

<androidx.core.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fillViewport="true"
        android:scrollbars="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">
            <RelativeLayout
                android:id="@+id/layoutHeader"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="120dp"
                    android:src="@drawable/img_logo" />

            </RelativeLayout>

            <WebView
                android:id="@+id/webView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:scrollbars="none" />
        </LinearLayout>

    </androidx.core.widget.NestedScrollView>

Some distorted result looks like these: webview bug

0 Answers0