summaryrefslogtreecommitdiffstats
path: root/ui/app_list
diff options
context:
space:
mode:
authormgiuca <mgiuca@chromium.org>2014-09-19 06:44:58 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-19 13:45:13 +0000
commit2cf06c31177287c9a1aecdf5b5ac6e2148215bf2 (patch)
treeb94e8ffe40c8692ff2fdc66ed3ad99454a814d12 /ui/app_list
parentdba9f11e90bfb66d32b9f7d9727483c902577862 (diff)
downloadchromium_src-2cf06c31177287c9a1aecdf5b5ac6e2148215bf2.zip
chromium_src-2cf06c31177287c9a1aecdf5b5ac6e2148215bf2.tar.gz
chromium_src-2cf06c31177287c9a1aecdf5b5ac6e2148215bf2.tar.bz2
App list: The line under folder headings has a fixed margin.
Previously, it had a fixed width, causing it to be very short on the wider app list window style. Now it extends (almost) all the way to the edge regardless of the app list's width. BUG=415461 Review URL: https://codereview.chromium.org/581853003 Cr-Commit-Position: refs/heads/master@{#295697}
Diffstat (limited to 'ui/app_list')
-rw-r--r--ui/app_list/views/folder_header_view.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/app_list/views/folder_header_view.cc b/ui/app_list/views/folder_header_view.cc
index 097a58a..c402893 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,8 @@ void FolderHeaderView::OnPaint(gfx::Canvas* canvas) {
return;
// Draw bottom separator line.
- rect.set_x((rect.width() - kBottomSeparatorWidth) / 2 + rect.x());
- rect.set_y(rect.y() + rect.height() - kBottomSeparatorHeight);
- rect.set_width(kBottomSeparatorWidth);
+ rect.Inset(kBottomSeparatorPadding, 0);
+ rect.set_y(rect.bottom() - kBottomSeparatorHeight);
rect.set_height(kBottomSeparatorHeight);
canvas->FillRect(rect, kTopSeparatorColor);
}