Merge "Take into account the visible title height when scrolling."

This commit is contained in:
Shimeng (Simon) Wang
2010-02-09 11:39:18 -08:00
committed by Android (Google) Code Review

View File

@@ -6172,6 +6172,9 @@ public class WebView extends AbsoluteLayout
// mContentHeight may not be updated yet
y = Math.max(0,
(Math.min(maxHeight, y + viewHeight) - viewHeight));
// We need to take into account the visible title height
// when scrolling since y is an absolute view position.
y = Math.max(0, y - getVisibleTitleHeight());
scrollTo(x, y);
}
break;