Revision: 7570
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7570&view=rev
Author:   hofman
Date:     2011-12-13 12:30:20 +0000 (Tue, 13 Dec 2011)
Log Message:
-----------
take cell frame into account or centered text field cell

Modified Paths:
--------------
    trunk/SKCenteredTextFieldCell.m

Modified: trunk/SKCenteredTextFieldCell.m
===================================================================
--- trunk/SKCenteredTextFieldCell.m     2011-12-13 12:16:30 UTC (rev 7569)
+++ trunk/SKCenteredTextFieldCell.m     2011-12-13 12:30:20 UTC (rev 7570)
@@ -43,7 +43,7 @@
 @implementation SKCenteredTextFieldCell
 
 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
-    CGFloat height = [self cellSize].height;
+    CGFloat height = [self cellSizeForBounds:cellFrame].height;
     if (height < NSHeight(cellFrame)) {
         cellFrame.origin.y += floor(0.5 * (NSHeight(cellFrame) - height));
         cellFrame.origin.y += [controlView isFlipped] ? TEXT_OFFSET : 
-TEXT_OFFSET;

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


------------------------------------------------------------------------------
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to