Commit 36467e7b authored by Allen Bauer's avatar Allen Bauer Committed by Commit Bot

Make sure the labels in the popup list are left aligned.

Bug: 803815
Change-Id: I32dbf0ed1736339f3420d113a1a5a6440c7b8542
Reviewed-on: https://chromium-review.googlesource.com/887243Reviewed-by: default avatarBret Sepulveda <bsep@chromium.org>
Commit-Queue: Allen Bauer <kylixrd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532420}
parent b04cb83b
...@@ -224,6 +224,7 @@ void ContentSettingBubbleContents::ListItemContainer::AddItem( ...@@ -224,6 +224,7 @@ void ContentSettingBubbleContents::ListItemContainer::AddItem(
icon->SetImage(item.image.AsImageSkia()); icon->SetImage(item.image.AsImageSkia());
label = new views::Label(item.title); label = new views::Label(item.title);
} }
label->SetHorizontalAlignment(gfx::HorizontalAlignment::ALIGN_LEFT);
list_item_views_.push_back(Row(icon, label)); list_item_views_.push_back(Row(icon, label));
AddRowToLayout(list_item_views_.back()); AddRowToLayout(list_item_views_.back());
} }
......
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