From 0e2aad680a9b410101108f3604df896dbd0305ac Mon Sep 17 00:00:00 2001 From: "pinkerton@chromium.org" Date: Thu, 23 Jul 2009 14:57:23 +0000 Subject: Increase the close button offset so the text doesn't overlap it. BUG=13300 TEST=see bug. Review URL: http://codereview.chromium.org/159269 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21381 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/tab_cell.mm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'chrome/browser/cocoa/tab_cell.mm') diff --git a/chrome/browser/cocoa/tab_cell.mm b/chrome/browser/cocoa/tab_cell.mm index 9f89c14..326f1f7 100644 --- a/chrome/browser/cocoa/tab_cell.mm +++ b/chrome/browser/cocoa/tab_cell.mm @@ -25,14 +25,12 @@ // Override drawing the button so that it looks like a Chromium tab instead // of just a normal MacOS button. - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { - - // Inset where the text is drawn to keep it away from the sloping edges of the // tab, the close box, and the icon view. These constants are derived // empirically as the cell doesn't know about the surrounding view objects. // TODO(pinkerton/alcor): Fix this somehow? const int kIconXOffset = 28; - const int kCloseBoxXOffset = 18; + const int kCloseBoxXOffset = 21; NSRect frame = NSOffsetRect(cellFrame, kIconXOffset, 0); frame.size.width -= kCloseBoxXOffset + kIconXOffset; [self drawInteriorWithFrame:frame -- cgit v1.1