diff options
| author | Shimeng (Simon) Wang <swang@google.com> | 2010-09-17 10:12:05 -0700 |
|---|---|---|
| committer | Shimeng (Simon) Wang <swang@google.com> | 2010-09-17 10:54:48 -0700 |
| commit | 14bcc0e7fe4e2cfddb0d98079ec0fbdbe33c5e87 (patch) | |
| tree | d68d48f9e47cbfad554c4ae621706dcfa89a4ef9 /core/java/android/webkit/WebView.java | |
| parent | a8f99bbbbc89014a2c38637f8e2179f0cd578b11 (diff) | |
Use website preferred width as the fixed viewport.
This preferred width will be set between the default viewport width and
the max fixed viewport width. The default viewport width serves as the
minimum fixed viewport width, so it's lowered to 980.
This change will make the shirt.woot.com/blog site works better, since it's using
1080 as the preferred width, so user needs not to scroll in overview mode.
issue: 3003933
Change-Id: Ie3eed44a54d277f5bc5f63cd394d463012a80d80
Diffstat (limited to 'core/java/android/webkit/WebView.java')
| -rw-r--r-- | core/java/android/webkit/WebView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 5d4ae6dbee50..c62894c743cf 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -667,7 +667,7 @@ public class WebView extends AbsoluteLayout // If the site doesn't use the viewport meta tag to specify the viewport, // use DEFAULT_VIEWPORT_WIDTH as the default viewport width - static final int DEFAULT_VIEWPORT_WIDTH = 1040; + static final int DEFAULT_VIEWPORT_WIDTH = 980; // normally we try to fit the content to the minimum preferred width // calculated by the Webkit. To avoid the bad behavior when some site's |
