Revision: 7577
http://skim-app.svn.sourceforge.net/skim-app/?rev=7577&view=rev
Author: hofman
Date: 2011-12-16 12:41:44 +0000 (Fri, 16 Dec 2011)
Log Message:
-----------
correct for padding around progress cell for expansion frame
Modified Paths:
--------------
trunk/SKProgressCell.m
Modified: trunk/SKProgressCell.m
===================================================================
--- trunk/SKProgressCell.m 2011-12-16 01:14:24 UTC (rev 7576)
+++ trunk/SKProgressCell.m 2011-12-16 12:41:44 UTC (rev 7577)
@@ -140,9 +140,10 @@
if (nil == objectValueForKey([self objectValue],
SKDownloadProgressIndicatorKey)) {
NSSize statusSize = [statusCell cellSize];
cellSize.width = fmax(cellSize.width, statusSize.width);
- cellSize.height += statusSize.height + MARGIN_Y;
+ cellSize.height += statusSize.height;
}
- cellSize.width += MARGIN_X;
+ cellSize.width += 2.0 * MARGIN_X;
+ cellSize.height += MARGIN_Y;
return cellSize;
}
@@ -173,7 +174,7 @@
- (NSRect)expansionFrameWithFrame:(NSRect)cellFrame inView:(NSView *)view {
NSRect rect = [super expansionFrameWithFrame:cellFrame inView:view];
- return SKShrinkRect(SKShrinkRect(rect, MARGIN_X, NSMinXEdge), MARGIN_Y,
[view isFlipped] ? NSMaxYEdge : NSMinYEdge);
+ return SKShrinkRect(NSInsetRect(rect, MARGIN_X, 0.0), MARGIN_Y, [view
isFlipped] ? NSMaxYEdge : NSMinYEdge);
}
#pragma mark Accessibility
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit