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

Unified Diff: chrome/browser/ui/cocoa/passwords/manage_passwords_view_controller.mm

Issue 2601513003: Fix the title alignment for the password bubble on Mac. (Closed)
Patch Set: Created 4 years 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/passwords/confirmation_password_saved_view_controller.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/passwords/manage_passwords_view_controller.mm
diff --git a/chrome/browser/ui/cocoa/passwords/manage_passwords_view_controller.mm b/chrome/browser/ui/cocoa/passwords/manage_passwords_view_controller.mm
index 5e25aac3d33e7dc1205e97a71eb16927548261c8..6436e43c0aa560cb3434bba7bfecbce09514a78d 100644
--- a/chrome/browser/ui/cocoa/passwords/manage_passwords_view_controller.mm
+++ b/chrome/browser/ui/cocoa/passwords/manage_passwords_view_controller.mm
@@ -84,10 +84,8 @@
[view addSubview:contentView];
// Wrap the title if necessary to match the width of the content view.
- if (NSWidth([titleLabel frame]) > NSWidth([contentView frame])) {
- [titleLabel setFrameSize:NSMakeSize(NSWidth([contentView frame]), 0)];
- [GTMUILocalizerAndLayoutTweaker sizeToFitFixedWidthTextField:titleLabel];
- }
+ [titleLabel setFrameSize:NSMakeSize(NSWidth([contentView frame]), 0)];
+ [GTMUILocalizerAndLayoutTweaker sizeToFitFixedWidthTextField:titleLabel];
// Done button.
doneButton_.reset([[self addButton:l10n_util::GetNSString(IDS_DONE)
« no previous file with comments | « chrome/browser/ui/cocoa/passwords/confirmation_password_saved_view_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698