diff options
author | Cary Clark <cary@android.com> | 2009-09-21 12:01:52 -0400 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2009-09-21 12:01:52 -0400 |
commit | 169158b01538ab52746184dcf76bafe6be727a9d (patch) | |
tree | 0720da4c5a8349c53a24325d786f919a38d5dc9b /src/com/android/browser/FindDialog.java | |
parent | 9f009767d91d8fd43607d90b832c7cbe56847a08 (diff) | |
download | packages_apps_Browser-169158b01538ab52746184dcf76bafe6be727a9d.zip packages_apps_Browser-169158b01538ab52746184dcf76bafe6be727a9d.tar.gz packages_apps_Browser-169158b01538ab52746184dcf76bafe6be727a9d.tar.bz2 |
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.java | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |