summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/login_view.cc
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-05 03:07:44 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-05 03:07:44 +0000
commit12765d53b96eeef30653cefb2c51f5ced9b02dd1 (patch)
tree5bf5d418b7d21b713a298326502423b988de4116 /chrome/browser/views/login_view.cc
parent4bfd26941228dc9062b5a05f547277f657d21e92 (diff)
downloadchromium_src-12765d53b96eeef30653cefb2c51f5ced9b02dd1.zip
chromium_src-12765d53b96eeef30653cefb2c51f5ced9b02dd1.tar.gz
chromium_src-12765d53b96eeef30653cefb2c51f5ced9b02dd1.tar.bz2
This patch fixes the truncation issue in the hostname url for HTTP Auth Dialog. It was a trivial fix that set the SetAllowCharacterBreak property to true for the message label. As a result, the hostname url does not truncate and wraps to the next line.
Original patch by Abhishek Arya <aarya@google.com> BUG=36772 TEST=Try a hostname url longer than 42 chars to see that it wraps correctly and wraps to the next line. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40708 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/login_view.cc')
-rw-r--r--chrome/browser/views/login_view.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/views/login_view.cc b/chrome/browser/views/login_view.cc
index 8564c2d..819de41 100644
--- a/chrome/browser/views/login_view.cc
+++ b/chrome/browser/views/login_view.cc
@@ -37,6 +37,7 @@ LoginView::LoginView(const std::wstring& explanation)
focus_delayed_(false) {
message_label_->SetMultiLine(true);
message_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
+ message_label_->SetAllowCharacterBreak(true);
// Initialize the Grid Layout Manager used for this dialog box.
GridLayout* layout = CreatePanelGridLayout(this);