Permalink
Browse files

Corrected alignment.

  • Loading branch information...
kolinkrewinkel committed Apr 27, 2012
1 parent bfd8311 commit d0bbe598770e60d9ce49397eaf2a30702c532cab
Showing with 4 additions and 3 deletions.
  1. +4 −3 KKGridView/KKGridViewSectionLabel.m
@@ -26,11 +26,12 @@ - (id)initWithString:(NSString *)string
return self;
}
-#pragma mark - Metric Overrides
+#pragma mark - Drawing
-- (CGRect)textRectForBounds:(CGRect)bounds limitedToNumberOfLines:(NSInteger)numberOfLines
+- (void)drawTextInRect:(CGRect)rect
{
- return CGRectMake(10.f, 0.f, bounds.size.width - 10.f, bounds.size.height);
+ UIEdgeInsets insets = UIEdgeInsetsMake(0.f, 12.f, 0.f, 0.f);
+ return [super drawTextInRect:UIEdgeInsetsInsetRect(rect, insets)];
}
@end

0 comments on commit d0bbe59

Please sign in to comment.