Fixing a bug in CellLayoutChildren getChildAt(int, int)

Change-Id: I50879c93ce5bf949242eb0174eb48e560cd657cc
This commit is contained in:
Adam Cohen 2011-04-19 17:03:08 -07:00
parent e031096502
commit f579b5041a
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class CellLayoutChildren extends ViewGroup {
CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) &&
(lp.cellY <= y) && (y < lp.cellY + lp.cellHSpan)) {
(lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) {
return child;
}
}