Skip to content

Commit

Permalink
fix ios 6 crashing due to auto font size/letter spacing scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed May 9, 2015
1 parent f7a01e6 commit 634d052
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prefs/HBPackageNameHeaderCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr
self.backgroundColor = [UIColor clearColor];
self.backgroundView = IS_MODERN ? nil : [[[UIView alloc] init] autorelease];
self.textLabel.textAlignment = NSTextAlignmentCenter;
self.textLabel.adjustsFontSizeToFitWidth = NO;
self.textLabel.adjustsLetterSpacingToFitWidth = NO;

_condensed = specifier.properties[@"condensed"] && ((NSNumber *)specifier.properties[@"condensed"]).boolValue;
_showAuthor = !specifier.properties[@"showAuthor"] || ((NSNumber *)specifier.properties[@"showAuthor"]).boolValue;
Expand Down

0 comments on commit 634d052

Please sign in to comment.