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

Unified Diff: ui/app_list/views/apps_grid_view.cc

Issue 1842373004: AppListFolderView now reports the correct size. [Refactor] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@applist-learnmore-period
Patch Set: Avoid dependency patch sets. Created 4 years, 9 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
« no previous file with comments | « no previous file | ui/app_list/views/contents_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/apps_grid_view.cc
diff --git a/ui/app_list/views/apps_grid_view.cc b/ui/app_list/views/apps_grid_view.cc
index 43cd030a5b9003640dddbcfea0a25b0130c14180..cf599fdb98cd6de73b04ae1db631cb0b67d729c2 100644
--- a/ui/app_list/views/apps_grid_view.cc
+++ b/ui/app_list/views/apps_grid_view.cc
@@ -887,7 +887,9 @@ bool AppsGridView::IsAnimatingView(AppListItemView* view) {
gfx::Size AppsGridView::GetPreferredSize() const {
const gfx::Insets insets(GetInsets());
- int page_switcher_height = page_switcher_view_->GetPreferredSize().height();
+ // If we are in a folder, ignore the page switcher for height calculations.
+ int page_switcher_height =
+ folder_delegate_ ? 0 : page_switcher_view_->GetPreferredSize().height();
gfx::Size size = GetTileGridSize();
size.Enlarge(insets.width(), insets.height() + page_switcher_height);
return size;
« no previous file with comments | « no previous file | ui/app_list/views/contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698