Commit ad7a59d3 authored by xiyuan@chromium.org's avatar xiyuan@chromium.org

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
parent 8796d92e
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment