From: <ho...@us...> - 2009-04-08 17:30:52
|
Revision: 14975 http://bibdesk.svn.sourceforge.net/bibdesk/?rev=14975&view=rev Author: hofman Date: 2009-04-08 17:30:47 +0000 (Wed, 08 Apr 2009) Log Message: ----------- fix cellSize for group cell with large count Modified Paths: -------------- trunk/bibdesk/BDSKGroupCell.m Modified: trunk/bibdesk/BDSKGroupCell.m =================================================================== --- trunk/bibdesk/BDSKGroupCell.m 2009-04-08 17:19:27 UTC (rev 14974) +++ trunk/bibdesk/BDSKGroupCell.m 2009-04-08 17:30:47 UTC (rev 14975) @@ -227,7 +227,7 @@ countSize = NSMakeSize(16, 16); } else if ([self count] > 0) { countSize = [countString boundingRectWithSize:cellSize options:0].size; - countSize.width += countSize.height; + countSize.width += [self count] < 100 ? countSize.height : 0.5 * countSize.height; // add oval pading around count } // cellSize.height approximates the icon size cellSize.width += BORDER_BETWEEN_EDGE_AND_IMAGE + cellSize.height + BORDER_BETWEEN_IMAGE_AND_TEXT; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |