Skip to content

Commit

Permalink
Fixed auto shrink bug when targeting iOS 7 or above
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed May 7, 2014
1 parent 9df1bb4 commit 37ce5e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FXLabel/FXLabel.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// FXLabel.h
//
// Version 1.5.7
// Version 1.5.8
//
// Created by Nick Lockwood on 20/08/2011.
// Copyright 2011 Charcoal Design
Expand Down
4 changes: 2 additions & 2 deletions FXLabel/FXLabel.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// FXLabel.m
//
// Version 1.5.7
// Version 1.5.8
//
// Created by Nick Lockwood on 20/08/2011.
// Copyright 2011 Charcoal Design
Expand Down Expand Up @@ -344,7 +344,7 @@ - (CGSize)FXLabel_sizeWithFont:(UIFont *)font
//get character width
NSString *character = characters[i];
CGFloat charWidth = [character FXLabel_sizeWithFont:subFont].width;
if (i == charCount - 1 || x + charWidth > width)
if (i == charCount - 1)
{
[widths addObject:@(charWidth)];
x += charWidth;
Expand Down

0 comments on commit 37ce5e8

Please sign in to comment.