diff options
author | dharcourt@chromium.org <dharcourt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-04 08:14:55 +0000 |
---|---|---|
committer | dharcourt@chromium.org <dharcourt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-04 08:14:55 +0000 |
commit | f6395a362d7d325b80de13f314ac1ff94d2a68c1 (patch) | |
tree | cebb9a41f65c475dc4fff5a3a0e9b861e07fefa5 /ui | |
parent | 68aa541fa0ef90a1e754b93cc428022e84bb4868 (diff) | |
download | chromium_src-f6395a362d7d325b80de13f314ac1ff94d2a68c1.zip chromium_src-f6395a362d7d325b80de13f314ac1ff94d2a68c1.tar.gz chromium_src-f6395a362d7d325b80de13f314ac1ff94d2a68c1.tar.bz2 |
Added ellipses when the title of notifications is too long.
Notification mock-ups show ellipses at the end of text when there is not
enough room for that text. Previously title text in multi-item
notifications had a trailing fade instead of trailing ellipses. This
changes that to ellipses.
BUG=161101
Review URL: https://chromiumcodereview.appspot.com/11636043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175122 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r-- | ui/message_center/notification_view.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/message_center/notification_view.cc b/ui/message_center/notification_view.cc index 7e61402..22d1fc4 100644 --- a/ui/message_center/notification_view.cc +++ b/ui/message_center/notification_view.cc @@ -146,6 +146,7 @@ void NotificationView::SetUpView() { // TODO(dharcourt): Skip the title Label when there's no title text. views::Label* title = new views::Label(notification_.title); title->SetHorizontalAlignment(gfx::ALIGN_LEFT); + title->SetElideBehavior(views::Label::ELIDE_AT_END); title->SetFont(title->font().DeriveFont(4)); title->SetEnabledColor(kTitleColor); title->SetBackgroundColor(kTitleBackgroundColor); |