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

Unified Diff: ui/app_list/apps_grid_view.cc

Issue 10832169: app_list: Make first col move for invalid page switch attempt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/apps_grid_view.cc
diff --git a/ui/app_list/apps_grid_view.cc b/ui/app_list/apps_grid_view.cc
index cc3567821dc8c59f8ec1e087bb38d0c5bac0362e..45b3c4a75c1107d9e87eb0c74f09d7c71176a6d6 100644
--- a/ui/app_list/apps_grid_view.cc
+++ b/ui/app_list/apps_grid_view.cc
@@ -149,9 +149,9 @@ void AppsGridView::Layout() {
} else {
const int col = i % cols_;
if (transition_offset > 0)
- x_offset += transition_offset * col;
+ x_offset += transition_offset * (col + 1);
else
- x_offset += transition_offset * (cols_ - col - 1);
+ x_offset += transition_offset * (cols_ - col);
}
gfx::Rect adjusted_slot(tile_slot);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698