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 097a58a35513a96409cc099adf145d988eb5206a..f56a6de131c23bcd3deeec0f6c9d7e8f9119b8ec 100644 |
--- a/ui/app_list/views/folder_header_view.cc |
+++ b/ui/app_list/views/folder_header_view.cc |
@@ -27,7 +27,7 @@ const int kPreferredWidth = 360; |
const int kPreferredHeight = 48; |
const int kIconDimension = 24; |
const int kPadding = 14; |
-const int kBottomSeparatorWidth = 380; |
+const int kBottomSeparatorPadding = 9; |
const int kBottomSeparatorHeight = 1; |
const int kMaxFolderNameWidth = 300; |
@@ -192,9 +192,9 @@ void FolderHeaderView::OnPaint(gfx::Canvas* canvas) { |
return; |
// Draw bottom separator line. |
- rect.set_x((rect.width() - kBottomSeparatorWidth) / 2 + rect.x()); |
+ rect.set_x(kBottomSeparatorPadding); |
rect.set_y(rect.y() + rect.height() - kBottomSeparatorHeight); |
- rect.set_width(kBottomSeparatorWidth); |
+ rect.set_width(rect.width() - kBottomSeparatorPadding * 2); |
calamity
2014/09/19 09:56:17
Use Rect::Inset().
Matt Giuca
2014/09/19 09:58:22
Done.
|
rect.set_height(kBottomSeparatorHeight); |
canvas->FillRect(rect, kTopSeparatorColor); |
} |