From bad466ff606d2e0dd9ba74d1a828392fdb6bb205 Mon Sep 17 00:00:00 2001 From: JingHaifeng Date: Thu, 13 Aug 2015 19:28:45 +0800 Subject: [PATCH] Update DynamicGridView.java Fix the error method. --- dynamicgrid/src/org/askerov/dynamicgrid/DynamicGridView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamicgrid/src/org/askerov/dynamicgrid/DynamicGridView.java b/dynamicgrid/src/org/askerov/dynamicgrid/DynamicGridView.java index e7e61f0..8469d0c 100644 --- a/dynamicgrid/src/org/askerov/dynamicgrid/DynamicGridView.java +++ b/dynamicgrid/src/org/askerov/dynamicgrid/DynamicGridView.java @@ -900,7 +900,7 @@ private boolean left(Point targetColumnRowPair, Point mobileColumnRowPair) { } private Point getColumnAndRowForView(View view) { - int pos = getPositionForView(view); + int pos = getPositionForView(view) - getFirstVisiblePosition(); int columns = getColumnCount(); int column = pos % columns; int row = pos / columns;