OSDN Git Service

Account for find dialog height in content height
authorCary Clark <cary@android.com>
Mon, 21 Sep 2009 16:01:52 +0000 (12:01 -0400)
committerCary Clark <cary@android.com>
Mon, 21 Sep 2009 16:01:52 +0000 (12:01 -0400)
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

index 2049bd0..df212d0 100644 (file)
@@ -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) {