Index: ash/system/tray/tray_background_view.cc |
diff --git a/ash/system/tray/tray_background_view.cc b/ash/system/tray/tray_background_view.cc |
index f4b75bc4e46fd0a6aa3e039196f203d96dc0a8e4..b19b137cfe596d95c38b415745a76a77af585508 100644 |
--- a/ash/system/tray/tray_background_view.cc |
+++ b/ash/system/tray/tray_background_view.cc |
@@ -276,7 +276,7 @@ void TrayBackgroundView::TrayContainer::UpdateLayout() { |
views::BoxLayout* layout = |
new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0, 0); |
- layout->set_main_axis_alignment(views::BoxLayout::MAIN_AXIS_ALIGNMENT_FILL); |
+ layout->SetDefaultFlex(1); |
views::View::SetLayoutManager(layout); |
} else { |
SetBorder(views::Border::CreateEmptyBorder( |
@@ -287,7 +287,7 @@ void TrayBackgroundView::TrayContainer::UpdateLayout() { |
views::BoxLayout* layout = |
new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0); |
- layout->set_main_axis_alignment(views::BoxLayout::MAIN_AXIS_ALIGNMENT_FILL); |
+ layout->SetDefaultFlex(1); |
views::View::SetLayoutManager(layout); |
} |
PreferredSizeChanged(); |