Revision: 7647
http://skim-app.svn.sourceforge.net/skim-app/?rev=7647&view=rev
Author: hofman
Date: 2012-02-15 12:16:43 +0000 (Wed, 15 Feb 2012)
Log Message:
-----------
fix natural height calculation of note outline items
Modified Paths:
--------------
trunk/SKMainWindowController_UI.m
trunk/SKNotesDocument.m
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2012-02-14 23:50:47 UTC (rev 7646)
+++ trunk/SKMainWindowController_UI.m 2012-02-15 12:16:43 UTC (rev 7647)
@@ -1010,7 +1010,8 @@
CGFloat indentation = [rightSideController.noteOutlineView
indentationPerLevel];
CGFloat width = NSWidth([cell drawingRectForBounds:NSMakeRect(0.0, 0.0,
[tableColumn width] - indentation, rowHeight)]);
NSRect rect = NSMakeRect(0, CGFLOAT_MAX, width, CGFLOAT_MAX);
- NSRect smallRect = NSMakeRect(0, CGFLOAT_MAX, width - indentation,
CGFLOAT_MAX);
+ width = NSWidth([cell drawingRectForBounds:NSMakeRect(0.0, 0.0,
NSWidth([rightSideController.noteOutlineView frame]) - 2 * indentation,
rowHeight)]);
+ NSRect smallRect = NSMakeRect(0, CGFLOAT_MAX, width, CGFLOAT_MAX);
NSArray *items = [sender representedObject];
Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m 2012-02-14 23:50:47 UTC (rev 7646)
+++ trunk/SKNotesDocument.m 2012-02-15 12:16:43 UTC (rev 7647)
@@ -522,7 +522,8 @@
CGFloat indentation = [outlineView indentationPerLevel];
CGFloat width = NSWidth([cell drawingRectForBounds:NSMakeRect(0.0, 0.0,
[tableColumn width] - indentation, rowHeight)]);
NSRect rect = NSMakeRect(0, CGFLOAT_MAX, width, CGFLOAT_MAX);
- NSRect smallRect = NSMakeRect(0, CGFLOAT_MAX, width - indentation,
CGFLOAT_MAX);
+ width = NSWidth([cell drawingRectForBounds:NSMakeRect(0.0, 0.0,
NSWidth([outlineView frame]) - 2 * indentation, rowHeight)]);
+ NSRect smallRect = NSMakeRect(0, CGFLOAT_MAX, width, CGFLOAT_MAX);
NSArray *items = [sender representedObject];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit