summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 15:17:59 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 15:17:59 +0000
commit9f67b3e3dea18b6069e0f924a48ddbf389577aa8 (patch)
tree013d90c36379e1034a5dd2c711ac483887db1592 /ui
parentf40089e2411a8c8b81542a0b38512281c385e6d5 (diff)
downloadchromium_src-9f67b3e3dea18b6069e0f924a48ddbf389577aa8.zip
chromium_src-9f67b3e3dea18b6069e0f924a48ddbf389577aa8.tar.gz
chromium_src-9f67b3e3dea18b6069e0f924a48ddbf389577aa8.tar.bz2
app_list: Fix label misalignment after installation.
App item title is manually centered to avoid the default eliding at both ends behavior. As such, it needs to re-layout when the title text changes. BUG=219248 Review URL: https://chromiumcodereview.appspot.com/14327015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195207 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/app_list/views/app_list_item_view.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/app_list/views/app_list_item_view.cc b/ui/app_list/views/app_list_item_view.cc
index ba59c61..4f41df4 100644
--- a/ui/app_list/views/app_list_item_view.cc
+++ b/ui/app_list/views/app_list_item_view.cc
@@ -182,6 +182,7 @@ void AppListItemView::ItemIconChanged() {
void AppListItemView::ItemTitleChanged() {
title_->SetText(UTF8ToUTF16(model_->title()));
title_->Invalidate();
+ Layout();
}
void AppListItemView::ItemHighlightedChanged() {