Revision: 18306
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18306&view=rev
Author: hofman
Date: 2011-12-09 18:16:47 +0000 (Fri, 09 Dec 2011)
Log Message:
-----------
only draw icon in drag image, as the text will be outside it
Modified Paths:
--------------
trunk/bibdesk/BDSKAddressTextField.m
Modified: trunk/bibdesk/BDSKAddressTextField.m
===================================================================
--- trunk/bibdesk/BDSKAddressTextField.m 2011-12-09 18:01:27 UTC (rev
18305)
+++ trunk/bibdesk/BDSKAddressTextField.m 2011-12-09 18:16:47 UTC (rev
18306)
@@ -158,17 +158,15 @@
NSImage *dragImage = nil;
NSImage *image = nil;
- NSRect drawRect = [self bounds];
+ CGFloat boundsHeight = NSHeight([self bounds]);
NSPoint dragPoint = iconRect.origin;
if ([self isFlipped]) {
dragPoint.y += NSHeight(iconRect);
- iconRect.origin.y = NSMaxY(drawRect) -
NSMaxY(iconRect);
+ iconRect.origin.y = boundsHeight - NSHeight(iconRect);
}
- drawRect.origin.x -= NSMinX(iconRect);
- drawRect.origin.y -= NSMinY(iconRect);
image = [[NSImage alloc] initWithSize:iconRect.size];
[image lockFocus];
- [[self cell] drawInteriorWithFrame:drawRect inView:nil];
+ [[self cell]
drawInteriorWithFrame:NSMakeRect(-NSMinX(iconRect), -NSMinY(iconRect),
NSMaxX(iconRect), boundsHeight) inView:nil];
[image unlockFocus];
dragImage = [[[NSImage alloc] initWithSize:iconRect.size]
autorelease];
[dragImage lockFocus];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit