Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm

Issue 6257005: Adjustments to bookmark bar folder menu placement issues.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm
===================================================================
--- chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (revision 71802)
+++ chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (working copy)
@@ -231,10 +231,11 @@
if ([button isFolder]) {
NSRect imageRect = NSZeroRect;
imageRect.size = [arrowImage_ size];
+ const CGFloat kArrowOffset = 1.0; // Required for proper centering.
NSRect drawRect = NSOffsetRect(imageRect,
NSWidth(cellFrame) - NSWidth(imageRect),
(NSHeight(cellFrame) / 2.0) -
- (NSHeight(imageRect) / 2.0));
+ (NSHeight(imageRect) / 2.0) + kArrowOffset);
mafv 2011/01/19 22:39:39 It may just be the codereview system, but the inde
mrossetti 2011/01/20 01:41:42 Done.
[arrowImage_ drawInRect:drawRect
fromRect:imageRect
operation:NSCompositeSourceOver

Powered by Google App Engine
This is Rietveld 408576698