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

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

Issue 305433002: Experimental app list slide animation is now horizontal, not vertical. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clip AppsGridView to avoid off-screen icons drawing over the start screen. Created 6 years, 7 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 ea4829ab9e60b236adb42a163e290a882c471698..2f088ae233ef7f0af9c6efe87f617ca3cd0d2aca 100644
--- a/ui/app_list/views/apps_grid_view.cc
+++ b/ui/app_list/views/apps_grid_view.cc
@@ -358,6 +358,9 @@ AppsGridView::AppsGridView(AppsGridViewDelegate* delegate,
activated_folder_item_view_(NULL),
dragging_for_reparent_item_(false) {
SetPaintToLayer(true);
+ // Clip any icons that are outside the grid view's bounds. These icons would
+ // otherwise be visible to the user when the grid view is off screen.
+ layer()->SetMasksToBounds(true);
SetFillsBoundsOpaquely(false);
pagination_model_->AddObserver(this);
« 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