same for torrent table, and fix a code placement issue

This commit is contained in:
Mitchell Livingston
2009-09-17 04:36:09 +00:00
parent feb714f655
commit d72a583163
2 changed files with 22 additions and 17 deletions

View File

@@ -87,12 +87,12 @@
visibleRect.origin.y = newY;
}
const NSInteger numberBlankRows = ceil(visibleRect.size.height / totalRowHeight);
//remaining visible rows continue alternating
visibleRect.size.height = totalRowHeight;
if (start)
visibleRect.origin.y += totalRowHeight;
const NSInteger numberBlankRows = ceil(visibleRect.size.height / totalRowHeight);
for (NSInteger i = start ? 1 : 0; i < numberBlankRows; i += 2)
{
gridRects[rectNum++] = visibleRect;