Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2491)

Unified Diff: athena/home/bottom_home_view.cc

Issue 360213002: Add Flex to views::BoxLayout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: athena/home/bottom_home_view.cc
diff --git a/athena/home/bottom_home_view.cc b/athena/home/bottom_home_view.cc
index c05bbf496e8453481b6dd41917232ba3dffff040..98cbc13042fef8ef6c6ada2c6b9d9730454dcf55 100644
--- a/athena/home/bottom_home_view.cc
+++ b/athena/home/bottom_home_view.cc
@@ -30,8 +30,7 @@ BottomHomeView::BottomHomeView(app_list::AppListViewDelegate* view_delegate)
views::BoxLayout* items_layout = new views::BoxLayout(
views::BoxLayout::kHorizontal, 0, 0, 0);
- items_layout->set_main_axis_alignment(
- views::BoxLayout::MAIN_AXIS_ALIGNMENT_FILL);
+ items_layout->SetDefaultFlex(1);
items_container->SetLayoutManager(items_layout);
for (size_t i = 0; i < top_level->item_count(); ++i) {
app_list::TileItemView* tile_item_view = new app_list::TileItemView();
« no previous file with comments | « ash/system/tray_accessibility.cc ('k') | chrome/browser/ui/views/message_center/message_center_widget_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698