Skip to content

Instantly share code, notes, and snippets.

@johnboiles
Created February 5, 2013 00:23
Show Gist options
  • Save johnboiles/4711047 to your computer and use it in GitHub Desktop.
Save johnboiles/4711047 to your computer and use it in GitHub Desktop.
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