Created
February 5, 2013 00:23
-
-
Save johnboiles/4711047 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Classes/Buttons/YKUIButton.m b/Classes/Buttons/YKUIButton.m | |
index bf5cdcd..18fdf2f 100644 | |
--- a/Classes/Buttons/YKUIButton.m | |
+++ b/Classes/Buttons/YKUIButton.m | |
@@ -167,7 +167,7 @@ | |
CGSize secondaryTitleSize = [_secondaryTitle sizeWithFont:(_secondaryTitleFont ? _secondaryTitleFont : _titleFont) constrainedToSize:constrainedToSize lineBreakMode:UILineBreakModeTailTruncation]; | |
titleSize.height += roundf(secondaryTitleSize.height); | |
} else if (_secondaryTitlePosition == YKUIButtonSecondaryTitlePositionBottomLeftSingle) { | |
- CGSize secondaryTitleSize = [_secondaryTitle sizeWithFont:(_secondaryTitleFont ? _secondaryTitleFont : _titleFont)]; | |
+ CGSize secondaryTitleSize = [_secondaryTitle sizeWithFont:(_secondaryTitleFont ? _secondaryTitleFont : _titleFont) constrainedToSize:constrainedToSize lineBreakMode:UILineBreakModeTailTruncation]; | |
titleSize.height += roundf(secondaryTitleSize.height); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment