Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your viewSize has changed and is notifying of this, with the width value of 0 for some reason (zoom possibly). As seen here:</p> <pre><code>// notify webkit that our virtual view size changed size (after inv-zoom) private void viewSizeChanged(int w, int h, int textwrapWidth, float scale, int anchorX, int anchorY, boolean ignoreHeight) { if (DebugFlags.WEB_VIEW_CORE) { Log.v(LOGTAG, "viewSizeChanged w=" + w + "; h=" + h + "; textwrapWidth=" + textwrapWidth + "; scale=" + scale); } if (w == 0) { Log.w(LOGTAG, "skip viewSizeChanged as w is 0"); return; } int width = w; if (mSettings.getUseWideViewPort()) { if (mViewportWidth == -1) { if (mSettings.getLayoutAlgorithm() == WebSettings.LayoutAlgorithm.NORMAL) { width = WebView.DEFAULT_VIEWPORT_WIDTH; } else { /* * if a page's minimum preferred width is wider than the * given "w", use it instead to get better layout result. If * we start a page with MAX_ZOOM_WIDTH, "w" will be always * wider. If we start a page with screen width, due to the * delay between {@link #didFirstLayout} and * {@link #viewSizeChanged}, * {@link #nativeGetContentMinPrefWidth} will return a more * accurate value than initial 0 to result a better layout. * In the worse case, the native width will be adjusted when * next zoom or screen orientation change happens. */ width = Math.min(WebView.sMaxViewportWidth, Math .max(w, Math.max( WebView.DEFAULT_VIEWPORT_WIDTH, nativeGetContentMinPrefWidth()))); } } else if (mViewportWidth &gt; 0) { width = Math.max(w, mViewportWidth); } else { width = textwrapWidth; } } </code></pre> <p>The documentation I used for this reference is <a href="http://www.java2s.com/Open-Source/Android/android-core/platform-frameworks-base/android/webkit/WebViewCore.java.htm" rel="nofollow noreferrer">here</a> for more information. Without seeing your code I'm not sure exactly why it's happening though. Then it is obviously just skipping the adjustment of any views with these parameters and thus you have your logs.</p> <p>[EDIT] Without being able to show code (understandable) the only thing I can really reference other than what I said before is a discussion I read a while ago <a href="https://stackoverflow.com/questions/6333076/android-adsense-cant-see-an-advertisement-in-an-application">here</a>, that sheds light on the fact that different contexts contain different data. You might be able to use the Activity Context instead of the Engine, or Application Context.. Not much help, but might be a first golden brick. :-? Good luck mate, hope you manage and I'll keep my eyes out for any references to give you. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload