mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-20 05:29:23 +00:00
Row offset regression fix, removed console.log
This commit is contained in:
1 parent
24ab9f9fdf
commit
86c10e687b
1 file changed
+1
-4
@@ -1349,9 +1349,6 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
|
||||
height = _rowHeight + _intercellSpacing.height;
|
||||
}
|
||||
|
||||
|
||||
// console.log(aRowIndex, _CGRectMake(0.0, y, _CGRectGetWidth([self bounds]), height));
|
||||
|
||||
return _CGRectMake(0.0, y, _CGRectGetWidth([self bounds]), height);
|
||||
}
|
||||
|
||||
@@ -1520,7 +1517,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
|
||||
}
|
||||
|
||||
var y = aPoint.y,
|
||||
row = FLOOR(y / (_rowHeight + (_intercellSpacing.height / 2)));
|
||||
row = FLOOR(y / (_rowHeight + _intercellSpacing.height));
|
||||
|
||||
if (row >= _numberOfRows)
|
||||
return CPNotFound;
|
||||
|
||||
Reference in new issue
Block a user