Revision: 18307
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18307&view=rev
Author: hofman
Date: 2011-12-09 23:49:18 +0000 (Fri, 09 Dec 2011)
Log Message:
-----------
use NSTextFieldCell's cellSize to determine vertical centering of text
Modified Paths:
--------------
trunk/bibdesk/BDSKTextWithIconCell.m
Modified: trunk/bibdesk/BDSKTextWithIconCell.m
===================================================================
--- trunk/bibdesk/BDSKTextWithIconCell.m 2011-12-09 18:16:47 UTC (rev
18306)
+++ trunk/bibdesk/BDSKTextWithIconCell.m 2011-12-09 23:49:18 UTC (rev
18307)
@@ -163,8 +163,8 @@
- (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) > [self cellSize].height + 2.0)
- textRect = BDSKCenterRectVertically(textRect, [self cellSize].height +
2.0, [controlView isFlipped]);
+ if (NSHeight(textRect) > [super cellSize].height + 2.0)
+ textRect = BDSKCenterRectVertically(textRect, [super cellSize].height
+ 2.0, [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.
------------------------------------------------------------------------------
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