summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/simple_xp_frame.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/simple_xp_frame.cc b/chrome/browser/simple_xp_frame.cc
index c2038ea..54a9d38 100644
--- a/chrome/browser/simple_xp_frame.cc
+++ b/chrome/browser/simple_xp_frame.cc
@@ -60,7 +60,10 @@ static const SkColor kTitleBarTextColor = SkColorSetRGB(255, 255, 255);
static const int kTopResizeBarHeight = 3;
// Left margin on the left side of the favicon.
-static const int kFavIconMargin = 2;
+static const int kFavIconMargin = 1;
+
+// Label offset.
+static const int kLabelVerticalOffset = -1;
// Padding between the favicon and the text.
static const int kFavIconPadding = 4;
@@ -228,11 +231,11 @@ void SimpleXPFrameTitleBar::RunMenu(ChromeViews::View* source,
void SimpleXPFrameTitleBar::Layout() {
CSize s;
menu_button_->GetPreferredSize(&s);
- menu_button_->SetBounds(kFavIconMargin, 1 + (GetHeight() - s.cy) / 2,
+ menu_button_->SetBounds(kFavIconMargin, (GetHeight() - s.cy) / 2,
s.cx, s.cy);
menu_button_->Layout();
label_->SetBounds(menu_button_->GetX() + menu_button_->GetWidth() +
- kFavIconPadding, 0,
+ kFavIconPadding, kLabelVerticalOffset,
GetWidth() - (menu_button_->GetX() +
menu_button_->GetWidth() + kFavIconPadding),
GetHeight());