Add default line break mode.

This commit is contained in:
Ross Boucher
2010-03-26 16:59:02 -07:00
parent e46d1a793c
commit eae975652e
+1
View File
@@ -97,6 +97,7 @@
_prototypeView = [[CPTextField alloc] initWithFrame:CGRectMakeZero()];
[_prototypeView setVerticalAlignment:CPCenterVerticalTextAlignment];
[_prototypeView setValue:[CPColor whiteColor] forThemeAttribute:"text-color" inState:CPThemeStateSelected];
[_prototypeView setLineBreakMode:CPLineBreakByTruncatingTail];
_horizontalScrollView = [[CPScrollView alloc] initWithFrame:[self bounds]];