Revision: 18318
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18318&view=rev
Author:   hofman
Date:     2011-12-15 12:19:46 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
don't go through our override for default cell size height

Modified Paths:
--------------
    trunk/bibdesk/BDSKTextWithIconCell.m

Modified: trunk/bibdesk/BDSKTextWithIconCell.m
===================================================================
--- trunk/bibdesk/BDSKTextWithIconCell.m        2011-12-15 07:35:08 UTC (rev 
18317)
+++ trunk/bibdesk/BDSKTextWithIconCell.m        2011-12-15 12:19:46 UTC (rev 
18318)
@@ -165,8 +165,9 @@
 - (void)drawInteriorWithFrame:(NSRect)aRect inView:(NSView *)controlView {
     // let super draw the text, but vertically center the text for tall cells, 
because NSTextFieldCell aligns at the top
     NSRect textRect = [self textRectForBounds:aRect];
-    if (NSHeight(textRect) > [super cellSize].height + 2.0)
-        textRect = BDSKCenterRectVertically(textRect, [super cellSize].height 
+ 2.0, [controlView isFlipped]);
+    CGFloat minHeight = [super cellSizeForBounds:NSMakeRect(0.0, 0.0, 4000.0, 
4000.0)].height + 2.0;
+    if (NSHeight(textRect) > minHeight)
+        textRect = BDSKCenterRectVertically(textRect, minHeight, [controlView 
isFlipped]);
     [super drawInteriorWithFrame:textRect inView:controlView];
     
     // Draw the image

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to