Commit 2ca5c651 authored by dconnelly's avatar dconnelly Committed by Commit bot

Fix help text size calculation for password gen bubble on Mac.

BUG=423945

Review URL: https://codereview.chromium.org/650013007

Cr-Commit-Position: refs/heads/master@{#300696}
parent c7645040
......@@ -164,11 +164,12 @@ NSColor* HelpLinkColor() {
autofill::kPopupBorderThickness;
width = std::max(width, (CGFloat)controller_->GetMinimumWidth());
CGFloat contentWidth = width - (2 * controller_->kHorizontalPadding);
CGFloat height =
autofill::kPopupBorderThickness +
controller_->kHelpVerticalPadding +
[self helpSizeForPopupWidth:width].height +
[self helpSizeForPopupWidth:contentWidth].height +
controller_->kHelpVerticalPadding +
autofill::kPopupBorderThickness;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment