project_files/HedgewarsMobile/Classes/EditableCellView.m
changeset 4211 7dcbd236ca59
parent 4210 caa9b08990eb
child 4284 57a501a69e5f
--- a/project_files/HedgewarsMobile/Classes/EditableCellView.m	Sun Nov 07 18:35:21 2010 -0500
+++ b/project_files/HedgewarsMobile/Classes/EditableCellView.m	Mon Nov 08 23:46:34 2010 +0100
@@ -31,7 +31,6 @@
 
         textField = [[UITextField alloc] initWithFrame:CGRectZero];
         textField.backgroundColor = [UIColor clearColor];
-        textField.font = [UIFont boldSystemFontOfSize:[UIFont labelFontSize]];
         textField.delegate = self;
         textField.clearButtonMode = UITextFieldViewModeWhileEditing;
         textField.clearsOnBeginEditing = NO;
@@ -77,6 +76,8 @@
         skew +=2;
     }
 
+    // sometimes the bold property gets lost
+    textField.font = [UIFont boldSystemFontOfSize:[UIFont labelFontSize]];
     textField.frame = CGRectMake(boundsX+offset+10, skew+10, 300, [UIFont labelFontSize] + 4);
 }