fixed a bug where the table header would attempt to set content inset on a _CPImageAndTextView

This commit is contained in:
Klaas Pieter Annema authored and Randall Luecke committed 2010-05-25 14:02:52 -05:00
1 parent d06d69966b
commit 6bd8e96ac0
1 file changed
+1 -2
+1 -2
View File
@@ -43,12 +43,11 @@
- (void)_init
{
_textField = [[_CPImageAndTextView alloc] initWithFrame:
CGRectMake(0.0, 0.0, CGRectGetWidth([self bounds]), CGRectGetHeight([self bounds]))];
CGRectMake(5.0, 0.0, CGRectGetWidth([self bounds]) - 10.0, CGRectGetHeight([self bounds]))];
[_textField setAutoresizingMask:CPViewWidthSizable|CPViewHeightSizable];
[_textField setLineBreakMode:CPLineBreakByTruncatingTail];
[_textField setContentInset:CGInsetMake(0.0, 0.0, 0.0, 5.0)];
[_textField setTextColor:[CPColor colorWithRed:51.0 / 255.0 green:51.0 / 255.0 blue:51.0 / 255.0 alpha:1.0]];
[_textField setFont:[CPFont boldSystemFontOfSize:12.0]];
[_textField setAlignment:CPLeftTextAlignment];