summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkeishi@google.com <keishi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 23:28:53 +0000
committerkeishi@google.com <keishi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 23:28:53 +0000
commit8b42f25c0341edc6a5eb9e8a60bd69f3e8292583 (patch)
treedb51df99a740f9ccadb21941b7d095dc6eceb8a3
parentbf5bdfffbe033f9bcce95dc0a3c841344fa10adb (diff)
downloadchromium_src-8b42f25c0341edc6a5eb9e8a60bd69f3e8292583.zip
chromium_src-8b42f25c0341edc6a5eb9e8a60bd69f3e8292583.tar.gz
chromium_src-8b42f25c0341edc6a5eb9e8a60bd69f3e8292583.tar.bz2
Fix button cell title from getting clipped
BUG=89218 TEST=manually. Check if any titles of bookmark buttons are clipped. Review URL: http://codereview.chromium.org/7427004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93126 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm1
-rw-r--r--chrome/browser/ui/cocoa/gradient_button_cell.mm2
2 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
index 7149e26..392c7ca 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
@@ -184,6 +184,7 @@
NSForegroundColorAttributeName,
[self font], NSFontAttributeName,
style.get(), NSParagraphStyleAttributeName,
+ [NSNumber numberWithFloat:0.2], NSKernAttributeName,
nil];
scoped_nsobject<NSAttributedString> ats([[NSAttributedString alloc]
initWithString:[self title]
diff --git a/chrome/browser/ui/cocoa/gradient_button_cell.mm b/chrome/browser/ui/cocoa/gradient_button_cell.mm
index c4d4486..2951c2f 100644
--- a/chrome/browser/ui/cocoa/gradient_button_cell.mm
+++ b/chrome/browser/ui/cocoa/gradient_button_cell.mm
@@ -462,7 +462,7 @@ static const NSTimeInterval kAnimationContinuousCycleDuration = 0.4;
// Constants from Cole. Will kConstant them once the feedback loop
// is complete.
NSRect drawFrame = NSInsetRect(cellFrame, 1.5 * lineWidth, 1.5 * lineWidth);
- NSRect innerFrame = NSInsetRect(cellFrame, 2 * lineWidth, lineWidth);
+ NSRect innerFrame = NSInsetRect(cellFrame, lineWidth, lineWidth);
const CGFloat radius = 3.5;
ButtonType type = [[(NSControl*)controlView cell] tag];