Merge "On double-tap, simply zoom in if content is too wide."

This commit is contained in:
Mangesh Ghiware
2012-04-10 18:00:06 -07:00
committed by Android (Google) Code Review

View File

@@ -2869,7 +2869,7 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
if (rect.width() < mFocusedNode.mHitTestSlop) {
// ignore bounding boxes that are too small
continue;
} else if (left != NO_LEFTEDGE && rect.width() > readingWidth) {
} else if (rect.width() > readingWidth) {
// stop when bounding box doesn't fit the screen width
// at reading scale
break;