diff options
| author | 2010-03-02 10:59:44 -0500 | |
|---|---|---|
| committer | 2010-03-02 10:59:44 -0500 | |
| commit | 72ab9980cbd9cdeb5a616724343131520514217c (patch) | |
| tree | d7b6df9ad5c2907149879ba81f51db627f99ee52 | |
| parent | 04218254ec1129e329cac71479b309cfb8a28d88 (diff) | |
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
| -rw-r--r-- | core/java/android/webkit/WebView.java | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |