Revision: 7649
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7649&view=rev
Author:   hofman
Date:     2012-02-15 23:24:52 +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-15 17:48:34 UTC (rev 7648)
+++ trunk/SKMainWindowController_UI.m   2012-02-15 23:24:52 UTC (rev 7649)
@@ -1007,9 +1007,10 @@
     CGFloat height, rowHeight = [rightSideController.noteOutlineView 
rowHeight];
     NSTableColumn *tableColumn = [rightSideController.noteOutlineView 
tableColumnWithIdentifier:NOTE_COLUMNID];
     id cell = [tableColumn dataCell];
-    CGFloat indentation = [rightSideController.noteOutlineView 
indentationPerLevel];
+    CGFloat indentation = 16.0;
     NSRect rect = NSMakeRect(0.0, 0.0, [tableColumn width] - indentation, 
CGFLOAT_MAX);
-    NSRect fullRect = NSMakeRect(0.0, 0.0,  
NSWidth([rightSideController.noteOutlineView frame]) - 2 * indentation, 
CGFLOAT_MAX);
+    indentation += [rightSideController.noteOutlineView indentationPerLevel];
+    NSRect fullRect = NSMakeRect(0.0, 0.0,  
NSWidth([rightSideController.noteOutlineView frame]) - indentation, 
CGFLOAT_MAX);
     
     NSArray *items = [sender representedObject];
     

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2012-02-15 17:48:34 UTC (rev 7648)
+++ trunk/SKNotesDocument.m     2012-02-15 23:24:52 UTC (rev 7649)
@@ -519,9 +519,10 @@
     CGFloat height,rowHeight = [outlineView rowHeight];
     NSTableColumn *tableColumn = [outlineView 
tableColumnWithIdentifier:NOTE_COLUMNID];
     id cell = [tableColumn dataCell];
-    CGFloat indentation = [outlineView indentationPerLevel];
+    CGFloat indentation = 16.0;
     NSRect rect = NSMakeRect(0.0, 0.0, [tableColumn width] - indentation, 
CGFLOAT_MAX);
-    NSRect fullRect = NSMakeRect(0.0, 0.0, NSWidth([outlineView frame]) - 2 * 
indentation, CGFLOAT_MAX);
+    indentation += [outlineView indentationPerLevel];
+    NSRect fullRect = NSMakeRect(0.0, 0.0, NSWidth([outlineView frame]) - 
indentation, 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

Reply via email to