Index: chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm |
diff --git a/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm b/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm |
index 8fc9e528592031b46bf9cb9c44cc90a75a224610..ab5b35771a0fdb8ca7f2483d37d4755ee7907506 100644 |
--- a/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm |
+++ b/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.mm |
@@ -164,11 +164,12 @@ NSColor* HelpLinkColor() { |
autofill::kPopupBorderThickness; |
width = std::max(width, (CGFloat)controller_->GetMinimumWidth()); |
+ CGFloat helpWidth = width - (2 * controller_->kHorizontalPadding); |
groby-ooo-7-16
2014/10/22 15:00:20
Mind calling this "contentWidth" instead? Makes it
dconnelly
2014/10/22 15:04:42
Done. Thanks!
|
CGFloat height = |
autofill::kPopupBorderThickness + |
controller_->kHelpVerticalPadding + |
- [self helpSizeForPopupWidth:width].height + |
+ [self helpSizeForPopupWidth:helpWidth].height + |
controller_->kHelpVerticalPadding + |
autofill::kPopupBorderThickness; |