summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame
diff options
context:
space:
mode:
authorbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-14 20:54:35 +0000
committerbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-14 20:54:35 +0000
commit08897c507d5f225f242a386055e8915520ed6acf (patch)
treeab8f15327a407493a09f742d77e24cdabf2c39ea /chrome/browser/views/frame
parente8f868ce5f437d5f216d2d94224dc9648ecf7ae2 (diff)
downloadchromium_src-08897c507d5f225f242a386055e8915520ed6acf.zip
chromium_src-08897c507d5f225f242a386055e8915520ed6acf.tar.gz
chromium_src-08897c507d5f225f242a386055e8915520ed6acf.tar.bz2
A couple of tweaks to the AeroGlassNonClientView:
- fix broken window resizing using the sizing borders... || should have been an &&, resulted in all non-client areas being treated as window caption. - use the width of the client view to size the tabstrip rather than the width of the non-client view. this was causing the new tab button to be clipped. B=2218,2267 Review URL: http://codereview.chromium.org/2841 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2205 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame')
-rw-r--r--chrome/browser/views/frame/aero_glass_non_client_view.cc4
1 files changed, 2 insertions, 2 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 fd53ad8..5692a77 100644
--- a/chrome/browser/views/frame/aero_glass_non_client_view.cc
+++ b/chrome/browser/views/frame/aero_glass_non_client_view.cc
@@ -135,7 +135,7 @@ AeroGlassNonClientView::~AeroGlassNonClientView() {
gfx::Rect AeroGlassNonClientView::GetBoundsForTabStrip(TabStrip* tabstrip) {
// If we are maximized, the tab strip will be in line with the window
// controls, so we need to make sure they don't overlap.
- int tabstrip_width = GetWidth();
+ int tabstrip_width = browser_view_->GetWidth();
if(frame_->IsMaximized()) {
TITLEBARINFOEX titlebar_info;
titlebar_info.cbSize = sizeof(TITLEBARINFOEX);
@@ -199,7 +199,7 @@ int AeroGlassNonClientView::NonClientHitTest(const gfx::Point& point) {
// caption area above the tabs and the top sizing border.
int client_view_right =
frame_->client_view()->GetX() + frame_->client_view()->GetWidth();
- if (point.x() >= frame_->client_view()->GetX() ||
+ if (point.x() >= frame_->client_view()->GetX() &&
point.x() < client_view_right) {
if (point.y() < kWindowSizingBorderSize)
return HTTOP;