Made CPTokenField themeable separately from CPTextField since the placeholder insets must be handled differently.

This commit is contained in:
Alexander Ljungberg committed 2010-10-02 19:38:12 -04:00
1 parent cce21e7e87
commit 421a51f008
1 file changed
+9
+9
View File
@@ -68,6 +68,11 @@ var CPTokenFieldTableColumnIdentifier = @"CPTokenFieldTableColumnIdentifier";
return [CPCharacterSet characterSetWithCharactersInString:@","];
}
+ (CPString)themeClass
{
return "tokenfield";
}
- (id)initWithFrame:(CPRect)frame
{
if (self = [super initWithFrame:frame])
@@ -383,9 +388,13 @@ var CPTokenFieldTableColumnIdentifier = @"CPTokenFieldTableColumnIdentifier";
[objectValue addObject:[token stringValue]];
}
#if PLATFORM(DOM)
if ([self _inputElement].value != @"")
[objectValue addObject:[self _inputElement].value];
#endif
return objectValue;
}