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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller_private.mm

Issue 7584015: [Mac] Fix avatar size after new icon drop. The image scaling behaves weird in a button cell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Different approach Created 9 years, 4 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
« no previous file with comments | « chrome/browser/ui/cocoa/browser/avatar_button.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
index d7b2c848d4f58ef27ed3f87904fcc9b07a1c794a..62c36b9c223e21892c1c6356de7231e6fcfb1e2f 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
@@ -371,8 +371,8 @@ willPositionSheet:(NSWindow*)sheet
// Now lay out incognito badge together with the tab strip.
if (avatarButton_.get()) {
- CGFloat sizeSquare = tabStripHeight - 5.0;
- [avatarButton_ setFrameSize:NSMakeSize(sizeSquare, sizeSquare)];
+ [avatarButton_ setFrameSize:NSMakeSize(tabStripHeight,
+ tabStripHeight - 5.0)];
// Actually place the badge *above* |maxY|, by +2 to miss the divider. On
// Lion or later, shift the badge left to move it away from the fullscreen
« no previous file with comments | « chrome/browser/ui/cocoa/browser/avatar_button.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698