diff options
Diffstat (limited to 'chrome/views/non_client_view.cc')
-rw-r--r-- | chrome/views/non_client_view.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/views/non_client_view.cc b/chrome/views/non_client_view.cc index 166042d..ca54796 100644 --- a/chrome/views/non_client_view.cc +++ b/chrome/views/non_client_view.cc @@ -135,7 +135,8 @@ void NonClientView::ResetWindowControls() { // NonClientView, View overrides: gfx::Size NonClientView::GetPreferredSize() { - return client_view_->GetPreferredSize(); + gfx::Rect client_bounds(gfx::Point(), client_view_->GetPreferredSize()); + return GetWindowBoundsForClientBounds(client_bounds).size(); } void NonClientView::Layout() { |