summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/FindDialog.java
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2009-09-21 12:01:52 -0400
committerCary Clark <cary@android.com>2009-09-21 12:01:52 -0400
commit169158b01538ab52746184dcf76bafe6be727a9d (patch)
tree0720da4c5a8349c53a24325d786f919a38d5dc9b /src/com/android/browser/FindDialog.java
parent9f009767d91d8fd43607d90b832c7cbe56847a08 (diff)
downloadandroid_packages_apps_Gello-169158b01538ab52746184dcf76bafe6be727a9d.tar.gz
android_packages_apps_Gello-169158b01538ab52746184dcf76bafe6be727a9d.tar.bz2
android_packages_apps_Gello-169158b01538ab52746184dcf76bafe6be727a9d.zip
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
Diffstat (limited to 'src/com/android/browser/FindDialog.java')
-rw-r--r--src/com/android/browser/FindDialog.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/browser/FindDialog.java b/src/com/android/browser/FindDialog.java
index 2049bd00..df212d0d 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) {