diff options
| author | 2010-01-14 18:18:41 -0800 | |
|---|---|---|
| committer | 2010-01-14 18:18:41 -0800 | |
| commit | 76336f2ccfcb97a6ad75f88abe95f57c3dd5b59d (patch) | |
| tree | 9636663f3c43379b585eb1bbe084e8f50e09cb26 | |
| parent | 196926b9803e586b06b753a0a02a6b0ba2e5a98c (diff) | |
DO NOT MERGE
If mViewportWidth is 0, it means screen width. If
textwrapWidth is not same as view width, which means
that we are in the state triggered by pinch, always
send textwrapWidth as width to WebKit to keep the
same layout.
Fix http://b/issue?id=2375232
| -rw-r--r-- | core/java/android/webkit/WebViewCore.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebViewCore.java b/core/java/android/webkit/WebViewCore.java index c3817fbd4b13..8ac915c556e3 100644 --- a/core/java/android/webkit/WebViewCore.java +++ b/core/java/android/webkit/WebViewCore.java @@ -1518,7 +1518,7 @@ final class WebViewCore { } else if (mViewportWidth > 0) { width = Math.max(w, mViewportWidth); } else { - width = Math.max(w, textwrapWidth); + width = textwrapWidth; } } nativeSetSize(width, width == w ? h : Math.round((float) width * h / w), |