| Index: ash/common/system/tray/tray_details_view.cc
|
| diff --git a/ash/common/system/tray/tray_details_view.cc b/ash/common/system/tray/tray_details_view.cc
|
| index 3ba5774ba636e8ff26d7d58482691f05688fda11..ca1318d1da755deb4b0be332004f9eda53e35ded 100644
|
| --- a/ash/common/system/tray/tray_details_view.cc
|
| +++ b/ash/common/system/tray/tray_details_view.cc
|
| @@ -43,7 +43,9 @@
|
| ScrollContentsView() {
|
| SetEventTargeter(base::MakeUnique<views::ViewTargeter>(this));
|
| SetLayoutManager(
|
| - new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 1));
|
| + new views::BoxLayout(views::BoxLayout::kVertical, 0,
|
| + UseMd() ? kContentsVerticalSpacingMd : 0,
|
| + UseMd() ? 0 : kContentsBetweenChildSpacingNonMd));
|
| }
|
| ~ScrollContentsView() override {}
|
|
|
| @@ -106,6 +108,10 @@
|
| const SkColor kSeparatorColor = SkColorSetA(SK_ColorBLACK, 0x1F);
|
| const int kShadowOffsetY = 2;
|
| const int kShadowBlur = 2;
|
| + const int kContentsVerticalSpacingMd = 4;
|
| + // TODO(fukino): Remove this constant once we stop maintaining pre-MD design.
|
| + // crbug.com/614453.
|
| + const int kContentsBetweenChildSpacingNonMd = 1;
|
|
|
| // A structure that keeps the original offset of each header between the
|
| // calls to Layout() to allow keeping track of which view should be sticky.
|
|
|