| Index: chrome/browser/browser.cc
|
| ===================================================================
|
| --- chrome/browser/browser.cc (revision 6997)
|
| +++ chrome/browser/browser.cc (working copy)
|
| @@ -1331,6 +1331,12 @@
|
| browser = Browser::CreateForPopup(profile_);
|
| }
|
|
|
| + // Preserve the size of the original window. The new window has already
|
| + // been given an offset by the OS, so we shouldn't copy the old bounds.
|
| + BrowserWindow* new_window = browser->window();
|
| + new_window->SetBounds(gfx::Rect(new_window->GetNormalBounds().origin(),
|
| + window()->GetNormalBounds().size()));
|
| +
|
| // We need to show the browser now. Otherwise ContainerWin assumes the
|
| // TabContents is invisible and won't size it.
|
| browser->window()->Show();
|
|
|