summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-11 03:59:09 +0000
committerbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-11 03:59:09 +0000
commitc4809365dfd6778a5055370a57494c1d2dca9b97 (patch)
tree17c91ca575f54c6df0b7d3768c6e16398bdb7f30 /chrome
parent10fa3325207f476f515d189b91df6fabda119c05 (diff)
downloadchromium_src-c4809365dfd6778a5055370a57494c1d2dca9b97.zip
chromium_src-c4809365dfd6778a5055370a57494c1d2dca9b97.tar.gz
chromium_src-c4809365dfd6778a5055370a57494c1d2dca9b97.tar.bz2
Make sure the tabstrip doesn't have the chin above it in maximized view in aero.
B=1031854 Review URL: http://codereview.chromium.org/2414 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2051 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/views/frame/aero_glass_non_client_view.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/views/frame/aero_glass_non_client_view.cc b/chrome/browser/views/frame/aero_glass_non_client_view.cc
index 6657355..2a036cb 100644
--- a/chrome/browser/views/frame/aero_glass_non_client_view.cc
+++ b/chrome/browser/views/frame/aero_glass_non_client_view.cc
@@ -146,7 +146,8 @@ gfx::Rect AeroGlassNonClientView::GetBoundsForTabStrip(TabStrip* tabstrip) {
tabstrip_width -= (tabstrip_width - titlebar_info.rgrect[2].left);
}
int tabstrip_height = tabstrip->GetPreferredHeight();
- return gfx::Rect(0, kTabStripY, tabstrip_width, tabstrip_height);
+ int tabstrip_y = frame_->IsMaximized() ? 0 : kTabStripY;
+ return gfx::Rect(0, tabstrip_y, tabstrip_width, tabstrip_height);
}
///////////////////////////////////////////////////////////////////////////////