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
This commit is contained in:
Cary Clark
2010-03-02 10:59:44 -05:00
parent 04218254ec
commit 72ab9980cb

View File

@@ -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;
}