From f007b8d0eea91d186bf62f1c25d518d1c0d02f7a Mon Sep 17 00:00:00 2001 From: calamity Date: Thu, 9 Apr 2015 20:26:19 -0700 Subject: [PATCH] Fix search results being clipped in app list. This CL fixes an issue where the search results page was being clipped incorrectly, using the last frame's bounds to clip the page. This is fixed by moving the clipping after the page bounds are set. BUG=474188 Review URL: https://codereview.chromium.org/1071083002 Cr-Commit-Position: refs/heads/master@{#324581} --- ui/app_list/views/contents_view.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/app_list/views/contents_view.cc b/ui/app_list/views/contents_view.cc index 9db469699975..d2869f168de6 100644 --- a/ui/app_list/views/contents_view.cc +++ b/ui/app_list/views/contents_view.cc @@ -270,8 +270,6 @@ void ContentsView::UpdatePageBounds() { // Update app list pages. for (AppListPage* page : app_list_pages_) { - page->OnAnimationUpdated(progress, current_state, target_state); - gfx::Rect to_rect = page->GetPageBoundsForState(target_state); gfx::Rect from_rect = page->GetPageBoundsForState(current_state); if (from_rect == to_rect) @@ -282,6 +280,7 @@ void ContentsView::UpdatePageBounds() { gfx::Tween::RectValueBetween(progress, from_rect, to_rect)); page->SetBoundsRect(bounds); + page->OnAnimationUpdated(progress, current_state, target_state); } // Update the search box. -- 2.11.4.GIT