From e6d5deb84f8b51589c0195c30396d9fb3b2f190b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 20 Oct 2011 01:21:17 +0000 Subject: [PATCH] Adapt label width for label width. --- Library.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2