project_files/HedgewarsMobile/Classes/EditableCellView.m
changeset 4208 dd54999c2822
parent 3904 22e4d74240e5
child 4210 caa9b08990eb
--- a/project_files/HedgewarsMobile/Classes/EditableCellView.m	Sun Nov 07 17:40:55 2010 -0500
+++ b/project_files/HedgewarsMobile/Classes/EditableCellView.m	Sun Nov 07 23:47:29 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);
 }