1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-31 03:12:44 +00:00

fix overlapping dock badging

This commit is contained in:
Mitchell Livingston 2008-04-01 22:29:50 +00:00
parent 9c93ac23b0
commit 91c7f0ae45

View file

@ -120,7 +120,7 @@
//string is in center of image
NSSize stringSize = [string sizeWithAttributes: fAttributes];
NSRect stringRect;
NSRect stringRect = badgeRect;
stringRect.origin.x += (badgeRect.size.width - stringSize.width) * 0.5;
stringRect.origin.y += (badgeRect.size.height - stringSize.height) * 0.5 + 1.0; //adjust for shadow
stringRect.size = stringSize;