Commit 6dce92e5 authored by Weidong Guo's avatar Weidong Guo Committed by Commit Bot

Fix alignment issues within folder

BUG=819824

Change-Id: I26abb67ecd0ec8759e2e3105691cb44b2c6f23ac
Reviewed-on: https://chromium-review.googlesource.com/953978Reviewed-by: default avatarYury Khmel <khmel@chromium.org>
Commit-Queue: Weidong Guo <weidongg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541818}
parent 29abbf88
......@@ -505,7 +505,6 @@ void AppListFolderView::ScheduleShowHideAnimation(bool show,
gfx::Size AppListFolderView::CalculatePreferredSize() const {
gfx::Size size = items_grid_view_->GetTileGridSizeWithoutPadding();
gfx::Size header_size = folder_header_view_->GetPreferredSize();
size.set_width(std::max(size.width(), header_size.width()));
size.Enlarge(0, kItemGridsBottomPadding + header_size.height());
size.Enlarge(kFolderPadding * 2, kFolderPadding * 2);
return size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment