Revision: 18294
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18294&view=rev
Author:   hofman
Date:     2011-12-05 23:02:38 +0000 (Mon, 05 Dec 2011)
Log Message:
-----------
fix offset of non-standard height pref icons

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

Modified: trunk/bibdesk/BDSKPreferenceIconCell.m
===================================================================
--- trunk/bibdesk/BDSKPreferenceIconCell.m      2011-12-05 13:20:16 UTC (rev 
18293)
+++ trunk/bibdesk/BDSKPreferenceIconCell.m      2011-12-05 23:02:38 UTC (rev 
18294)
@@ -45,7 +45,7 @@
     NSSize cellSize = [self cellSizeForBounds:cellFrame];
     if (cellSize.height < NSHeight(cellFrame)) {
         NSRect ignored;
-        NSDivideRect(cellFrame, &cellFrame, &ignored, cellSize.height, 
[controlView isFlipped] ? NSMinYEdge : NSMaxYEdge);
+        NSDivideRect(cellFrame, &cellFrame, &ignored, cellSize.height, 
[controlView isFlipped] ? NSMaxYEdge : NSMinYEdge);
     }
     [super drawWithFrame:cellFrame inView:controlView];
 }
@@ -70,7 +70,7 @@
             NSPoint point = cellFrame.origin;
             point.x += (NSWidth(cellFrame) - NSWidth(rect)) / 2.0;
             if ([controlView isFlipped])
-                point.y += NSHeight(rect);
+                point.y += NSHeight(cellFrame);
             
             NSPasteboard *pboard = [NSPasteboard 
pasteboardWithName:NSDragPboard];
             [pboard declareTypes:[NSArray 
arrayWithObject:@"NSToolbarIndividualItemDragType"] owner:nil];

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


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to