Index: ui/app_list/views/folder_header_view.cc |
diff --git a/ui/app_list/views/folder_header_view.cc b/ui/app_list/views/folder_header_view.cc |
index 58c54b832e22ad0dcfbb553a2d613dcf998d9846..097a58a35513a96409cc099adf145d988eb5206a 100644 |
--- a/ui/app_list/views/folder_header_view.cc |
+++ b/ui/app_list/views/folder_header_view.cc |
@@ -167,7 +167,8 @@ void FolderHeaderView::Layout() { |
: folder_name_placeholder_text_; |
int text_width = |
gfx::Canvas::GetStringWidth(text, folder_name_view_->GetFontList()) + |
- folder_name_view_->GetCaretBounds().width(); |
+ folder_name_view_->GetCaretBounds().width() + |
+ folder_name_view_->GetInsets().width(); |
text_width = std::min(text_width, kMaxFolderNameWidth); |
text_bounds.set_x(back_bounds.x() + (rect.width() - text_width) / 2); |
text_bounds.set_width(text_width); |