Commit d2ec5fa4 authored by gbillock@chromium.org's avatar gbillock@chromium.org

Allow multi-line content settings bubble titles.

Since there can be long headings, and there's a max width, allow the heading to wrap.

TEST=trigger registerProtocolHandler bubble for a long-named handler

BUG=None

Review URL: https://chromiumcodereview.appspot.com/13748002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195236 0039d316-1c4b-4281-b951-d872f2087c98
parent 378b6136
......@@ -201,6 +201,8 @@ void ContentSettingBubbleContents::Init() {
if (!bubble_content.title.empty()) {
views::Label* title_label = new views::Label(UTF8ToUTF16(
bubble_content.title));
title_label->SetMultiLine(true);
title_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
layout->StartRow(0, kSingleColumnSetId);
layout->AddView(title_label);
bubble_content_empty = false;
......
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