mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-20 05:29:23 +00:00
Last row of the tableview didn't draw
This commit is contained in:
1 parent
86c10e687b
commit
088b6eac35
1 file changed
+3
-3
@@ -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])
|
||||
|
||||
Reference in new issue
Block a user