From 72ab9980cbd9cdeb5a616724343131520514217c Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Tue, 2 Mar 2010 10:59:44 -0500 Subject: account for find dialog height when positioning layers The Find dialog draws on top of the WebView, including any layers attached to the bottom of the screen. Adjust the view dimenions returned to the layer code by the height of the Find dialog if visible. http://b/2453769 --- core/java/android/webkit/WebView.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/java/android/webkit/WebView.java') diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index ca7224e69ccc..10d8e2992998 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -3133,6 +3133,9 @@ public class WebView extends AbsoluteLayout metrics.mScrollY = computeVerticalScrollOffset(); metrics.mWidth = getWidth(); metrics.mHeight = getHeight() - getVisibleTitleHeight(); + if (mFindIsUp) { + metrics.mHeight -= mFindHeight; + } metrics.mInvScale = mInvActualScale; return metrics; } -- cgit v1.2.3