Commit fe6080fc authored by dconnelly's avatar dconnelly Committed by Commit bot

Fix password generation icon sizing.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#291877}
parent bce0267e
...@@ -206,8 +206,7 @@ NSColor* HelpLinkColor() { ...@@ -206,8 +206,7 @@ NSColor* HelpLinkColor() {
const CGFloat keyY = const CGFloat keyY =
std::ceil((controller_->kPopupPasswordSectionHeight / 2.0) - std::ceil((controller_->kPopupPasswordSectionHeight / 2.0) -
(imageSize.height / 2.0)); (imageSize.height / 2.0));
[keyIcon_ setFrameOrigin:NSMakePoint(keyX, keyY)]; [keyIcon_ setFrame:{ NSMakePoint(keyX, keyY), imageSize }];
[keyIcon_ sizeToFit];
// The title and password fall to the right of the key icon and are centered // The title and password fall to the right of the key icon and are centered
// vertically as a group with some padding in between. // vertically as a group with some padding in between.
......
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