Commit 297d2216 authored by jdufault's avatar jdufault Committed by Commit bot

Set maximum size for HoverHighlightView right icon.

Previously, the image would grow larger than kTrayPopupDetailsIconWidth.

BUG=625251

Review-Url: https://codereview.chromium.org/2165133002
Cr-Commit-Position: refs/heads/master@{#407284}
parent a3eb53ab
......@@ -52,7 +52,9 @@ void HoverHighlightView::AddRightIcon(const gfx::ImageSkia& image) {
DCHECK(box_layout_);
DCHECK(!right_icon_);
right_icon_ = new FixedSizedImageView(kTrayPopupDetailsIconWidth, 0);
right_icon_ = new views::ImageView();
right_icon_->SetImageSize(
gfx::Size(kTrayPopupDetailsIconWidth, kTrayPopupDetailsIconWidth));
right_icon_->SetImage(image);
right_icon_->SetEnabled(enabled());
AddChildView(right_icon_);
......
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