Commit 9f6477d6 authored by Evan Stade's avatar Evan Stade Committed by Commit Bot

Fix appearance of PWA security chip.

The preferred height is used during layout of the PWA window frame
(CustomTabBarView), so remove obsolete/misleading comment and restore old
layout behavior.

Bug: 1026519
Change-Id: I015f9bcc0fb4661f73603b3a46acfae937e2f1a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1949203
Auto-Submit: Evan Stade <estade@chromium.org>
Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Commit-Queue: Evan Stade <estade@chromium.org>
Cr-Commit-Position: refs/heads/master@{#721523}
parent 3e1c5949
......@@ -414,8 +414,7 @@ gfx::Size IconLabelBubbleView::GetSizeForLabelWidth(int label_width) const {
shrinking ? image_size.width() : grow_animation_starting_width_;
const int max_width = image_size.width() + GetInternalSpacing() + label_width;
// Height is ignored.
return gfx::Size(GetWidthBetween(min_width, max_width), 1);
return gfx::Size(GetWidthBetween(min_width, max_width), image_size.height());
}
int IconLabelBubbleView::GetInternalSpacing() const {
......
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