Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

And when gremlins pop up in your code, they sometimes magically go away.

I would imagine the various capp linting fixed is somewhere.
  • Loading branch information...
commit 531a830188742508f013c9a41b3068b9329830c2 1 parent d13778a
@Me1000 Me1000 authored
Showing with 1 addition and 88 deletions.
  1. +0 −87 Client/IssuesController.j
  2. +1 −1  Client/Resources/MainMenu.cib
View
87 Client/IssuesController.j
@@ -1047,90 +1047,3 @@
}
@end
-
-@implementation MyTable : CPTableView
-- (CPRange)_unboundedRowsInRect:(CGRect)aRect
-{
- var boundedRange = [self rowsInRect:aRect],
- lastRow = CPMaxRange(boundedRange),
- rectOfLastRow = [self _rectOfRow:lastRow checkRange:NO],
- bottom = CGRectGetMaxY(aRect),
- bottomOfBoundedRows = CGRectGetMaxY(rectOfLastRow);
-
- // we only have to worry about the rows below the last...
- if (bottom <= bottomOfBoundedRows)
- return boundedRange;
-
- var numberOfNewRows = CEIL(bottom - bottomOfBoundedRows) / ([self rowHeight] + _intercellSpacing.height);
-
- boundedRange.length += numberOfNewRows + 1;
-
- return boundedRange;
-}
-
-- (void)drawBackgroundInClipRect:(CGRect)aRect
-{
- if (!_usesAlternatingRowBackgroundColors)
- return;
-
- var rowColors = [self alternatingRowBackgroundColors],
- colorCount = [rowColors count];
-
- if (colorCount === 0)
- return;
-
- var context = [[CPGraphicsContext currentContext] graphicsPort];
-
- if (colorCount === 1)
- {
- CGContextSetFillColor(context, rowColors[0]);
- CGContextFillRect(context, aRect);
-
- return;
- }
-
- var exposedRows = [self _unboundedRowsInRect:aRect],
- lastRow = CPMaxRange(exposedRows),
- colorIndex = 0,
- groupRowRects = [],
- row = exposedRows.location;
-
- //loop through each color so we only draw once for each color
- while (colorIndex < colorCount)
- {
- CGContextBeginPath(context);
- 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])
- CGContextAddRect(context, CGRectIntersection(aRect, [self _rectOfRow:row checkRange:NO]));
- else
- groupRowRects.push(CGRectIntersection(aRect, [self _rectOfRow:row checkRange:NO]));
- }
- CGContextClosePath(context);
-
- CGContextSetFillColor(context, rowColors[colorIndex]);
- CGContextFillPath(context);
-
- colorIndex++;
- }
-
- [self _drawGroupRowsForRects:groupRowRects];
-}
-
-- (CGRect)_rectOfRow:(CPInteger)aRowIndex checkRange:(BOOL)checkRange
-{
- var lastIndex = [self numberOfRows] - 1;
-
- if (checkRange && (aRowIndex > lastIndex || aRowIndex < 0))
- return CGRectMakeZero();
-
- var y = aRowIndex * (_rowHeight + _intercellSpacing.height),
- height = _rowHeight + _intercellSpacing.height;
-
-
- return CGRectMake(0.0, y, CGRectGetWidth([self bounds]), height);
-}
-
-
-@end
View
2  Client/Resources/MainMenu.cib
1 addition, 1 deletion not shown
Please sign in to comment.
Something went wrong with that request. Please try again.