| 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;
|
|
|