From 72ab9980cbd9cdeb5a616724343131520514217c Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Tue, 2 Mar 2010 10:59:44 -0500 Subject: [PATCH] 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(+) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index ca7224e69ccce..10d8e29929981 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; }