apply to contentView instead of bezelView

This commit is contained in:
daboe01 committed 2014-06-28 16:55:43 +02:00
1 parent 3652931be8
commit 634c6dd455
1 file changed
+5 -1
+5 -1
View File
@@ -1730,7 +1730,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
relativeToEphemeralSubviewNamed:@"content-view"];
if (bezelView)
[bezelView setBackgroundColor:_textFieldBackgroundColor || [self currentValueForThemeAttribute:@"bezel-color"]];
[bezelView setBackgroundColor:[self currentValueForThemeAttribute:@"bezel-color"]];
var contentView = [self layoutEphemeralSubviewNamed:@"content-view"
positioned:CPWindowAbove
@@ -1755,6 +1755,10 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
[contentView setText:string];
[contentView setTextColor:[self currentValueForThemeAttribute:@"text-color"]];
if (_textFieldBackgroundColor)
[contentView setBackgroundColor:_textFieldBackgroundColor];
[contentView setFont:[self currentValueForThemeAttribute:@"font"]];
[contentView setAlignment:[self currentValueForThemeAttribute:@"alignment"]];
[contentView setVerticalAlignment:[self currentValueForThemeAttribute:@"vertical-alignment"]];