From 169158b01538ab52746184dcf76bafe6be727a9d Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Mon, 21 Sep 2009 12:01:52 -0400 Subject: [PATCH] Account for find dialog height in content height Use the set dialog height when the find dialog is up so that found items at the bottom of the screen are scrolled into view. This uses a companion change in webview that takes the find dialog height into account when computing the content height. Fixes http://b/issue?id=2122916 --- src/com/android/browser/FindDialog.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/browser/FindDialog.java b/src/com/android/browser/FindDialog.java index 2049bd0..df212d0 100644 --- a/src/com/android/browser/FindDialog.java +++ b/src/com/android/browser/FindDialog.java @@ -194,6 +194,8 @@ import android.widget.TextView; mMatchesView.setVisibility(View.INVISIBLE); } else { mMatchesView.setVisibility(View.VISIBLE); + mWebView.setFindDialogHeight( + getWindow().getDecorView().getHeight()); int found = mWebView.findAll(find.toString()); setMatchesFound(found); if (found < 2) { -- 2.11.0