diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-07 01:24:21 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-07 01:24:21 +0000 |
commit | ad7a59d368b34ca0714daaf90ed7d177b78bab48 (patch) | |
tree | 065ef8ef786539a197d108bdfabd9c709d510ee0 /ui | |
parent | 8796d92e4ae87d65f65a465630d0653d5fb263cf (diff) | |
download | chromium_src-ad7a59d368b34ca0714daaf90ed7d177b78bab48.zip chromium_src-ad7a59d368b34ca0714daaf90ed7d177b78bab48.tar.gz chromium_src-ad7a59d368b34ca0714daaf90ed7d177b78bab48.tar.bz2 |
app_list: Make first col move for invalid page switch attempt.
BUG=None.
TEST=Verify that first/last cols icons also moves when trying to make an invalid page transition in app list.
TBR=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10832169
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150218 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app_list/apps_grid_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app_list/apps_grid_view.cc b/ui/app_list/apps_grid_view.cc index cc35678..45b3c4a 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); |