diff options
author | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-27 01:37:16 +0000 |
---|---|---|
committer | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-27 01:37:16 +0000 |
commit | 15bdb3c1a25d1610a26035b76c23efdb481de78e (patch) | |
tree | 4fd06a498a87c91b0f8be2f86e1f19a7aad5fbeb | |
parent | e02c4c1a5d1dc75633e50dbe82f2ac6f64ef42ce (diff) | |
download | chromium_src-15bdb3c1a25d1610a26035b76c23efdb481de78e.zip chromium_src-15bdb3c1a25d1610a26035b76c23efdb481de78e.tar.gz chromium_src-15bdb3c1a25d1610a26035b76c23efdb481de78e.tar.bz2 |
Position the find box correctly with the new frames.
B=1031854
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1416 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/find_in_page_controller.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/find_in_page_controller.cc b/chrome/browser/find_in_page_controller.cc index e5c667d..db96463 100644 --- a/chrome/browser/find_in_page_controller.cc +++ b/chrome/browser/find_in_page_controller.cc @@ -476,7 +476,10 @@ void FindInPageController::GetDialogBounds(gfx::Rect* bounds) { // Find the dimensions of the toolbar and the BookmarkBar. CRect toolbar_bounds, bookmark_bar_bounds; if (toolbar) { - toolbar->GetBounds(&toolbar_bounds); + if (!g_browser_process->IsUsingNewFrames()) + toolbar->GetBounds(&toolbar_bounds); + else + toolbar->GetLocalBounds(&toolbar_bounds, false); // Need to convert toolbar bounds into ViewContainer coords because the // toolbar is the child of another view that isn't the top level view. // This is required to ensure correct positioning relative to the top,left |