remove bottom corner view drawing in CPScrollView

This commit is contained in:
Klaas Pieter Annema committed 2010-09-10 14:20:18 +02:00
1 parent 67a023a992
commit 64b733b1ea
1 file changed
-22
-22
View File
@@ -797,28 +797,6 @@
default:
break;
}
if (![[self verticalScroller] isHidden] && ![[self horizontalScroller] isHidden])
{
var verticalScrollerFrame = [[self verticalScroller] frame],
bottomCornerRect = CGRectMakeCopy(verticalScrollerFrame),
borderColor = [self currentValueForThemeAttribute:@"line-border-color"];
bottomCornerRect.origin.y = CGRectGetMaxY(verticalScrollerFrame);
bottomCornerRect.size.height = [CPScroller scrollerWidth];
CGContextSetFillColor(context, borderColor);
CGContextFillRect(context, bottomCornerRect);
CGContextSetStrokeColor(context, borderColor);
CGContextMoveToPoint(context, CGRectGetMinX(bottomCornerRect), CGRectGetMinY(bottomCornerRect));
CGContextAddLineToPoint(context, CGRectGetMaxX(bottomCornerRect), CGRectGetMinY(bottomCornerRect));
CGContextStrokePath(context);
CGContextMoveToPoint(context, CGRectGetMinX(bottomCornerRect), CGRectGetMinY(bottomCornerRect));
CGContextAddLineToPoint(context, CGRectGetMinX(bottomCornerRect), CGRectGetMaxY(bottomCornerRect));
CGContextStrokePath(context);
}
}
- (void)_drawGrayBezelInContext:(CGContext)context bounds:(CGRect)aRect