Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea96d1e2 authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Provide a getter to access the width of the HTML document.

Necessary to scale thumbnail pictures to show the full page width.

Change-Id: I631e880b09fe66403ea71bf5e019899a180e6a53
parent 0acf9a5b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2185,6 +2185,14 @@ public class WebView extends AbsoluteLayout
        return mContentHeight;
    }

    /**
     * @return the width of the HTML content.
     * @hide
     */
    public int getContentWidth() {
        return mContentWidth;
    }

    /**
     * Pause all layout, parsing, and javascript timers for all webviews. This
     * is a global requests, not restricted to just this webview. This can be