Last row of the tableview didn't draw

This commit is contained in:
Randall Luecke committed 2010-12-19 15:32:52 -05:00
1 parent 86c10e687b
commit 088b6eac35
1 file changed
+3 -3
+3 -3
View File
@@ -1410,9 +1410,9 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
if (bottom <= bottomOfBoundedRows)
return boundedRange;
var numberOfNewRows = CEIL(bottom - bottomOfBoundedRows) * ([self rowHeight] + _intercellSpacing.height);
var numberOfNewRows = CEIL(bottom - bottomOfBoundedRows) / ([self rowHeight] + _intercellSpacing.height);
boundedRange.length += numberOfNewRows;
boundedRange.length += numberOfNewRows + 1;
return boundedRange;
@@ -2840,7 +2840,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
while (colorIndex < colorCount)
{
CGContextBeginPath(context);
for (var row = colorIndex; row < lastRow; row += colorCount)
for (var row = colorIndex; row <= lastRow; row += colorCount)
{
// if it's not a group row draw it otherwise we draw it later
if (![_groupRows containsIndex:row])