diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-23 19:32:09 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-23 19:32:09 +0000 |
commit | 731c1c7dd796644ec894c8727a59adf96dc18d43 (patch) | |
tree | b8c03ccd2e51f586da85b1202b3a8d74747876f7 /chrome | |
parent | 27d245a415055f94ea53db2b0451847dd41a567e (diff) | |
download | chromium_src-731c1c7dd796644ec894c8727a59adf96dc18d43.zip chromium_src-731c1c7dd796644ec894c8727a59adf96dc18d43.tar.gz chromium_src-731c1c7dd796644ec894c8727a59adf96dc18d43.tar.bz2 |
Fixes bug in FillLayout. It should use the size of the root view. I'm
not actually going to need FillLayout, but I'm fixing the bug in case
someone else bumps into it.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8202
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3839 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/views/container_win.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/views/container_win.cc b/chrome/views/container_win.cc index b20e8a9..43286fb 100644 --- a/chrome/views/container_win.cc +++ b/chrome/views/container_win.cc @@ -50,13 +50,11 @@ FillLayout::~FillLayout() { } void FillLayout::Layout(View* host) { - CRect bounds; - host->GetContainer()->GetBounds(&bounds, false); if (host->GetChildViewCount() == 0) return; View* frame_view = host->GetChildViewAt(0); - frame_view->SetBounds(0, 0, bounds.Width(), bounds.Height()); + frame_view->SetBounds(0, 0, host->width(), host->height()); } gfx::Size FillLayout::GetPreferredSize(View* host) { |