From: Jay Freeman (saurik) Date: Thu, 20 Oct 2011 01:21:17 +0000 (+0000) Subject: Adapt label width for label width. X-Git-Tag: v0.9.3902~20 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/e6d5deb84f8b51589c0195c30396d9fb3b2f190b?hp=1ed87fae7b17053ca738cf29f1a741bff11587b0 Adapt label width for label width. --- diff --git a/Library.mm b/Library.mm index 198ddbe..6b1d4fa 100644 --- a/Library.mm +++ b/Library.mm @@ -1417,7 +1417,7 @@ MSInstanceMessageHook1(void, SBIconLabel, drawRect, CGRect, rect) { style = [style stringByAppendingString:@"text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0px; "]; bool ellipsis(false); - float max = 75, width; + float max = [self frame].size.width - 11, width; width: width = [(ellipsis ? [label stringByAppendingString:@"..."] : label) sizeWithStyle:style forWidth:320].width;