Revision: 3101
http://skim-app.svn.sourceforge.net/skim-app/?rev=3101&view=rev
Author: hofman
Date: 2007-10-30 11:46:49 -0700 (Tue, 30 Oct 2007)
Log Message:
-----------
Use indentation from outlineview instead of a hard coded number.
Modified Paths:
--------------
trunk/SKMainWindowController.m
trunk/SKNotesDocument.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2007-10-30 13:32:18 UTC (rev 3100)
+++ trunk/SKMainWindowController.m 2007-10-30 18:46:49 UTC (rev 3101)
@@ -3592,9 +3592,10 @@
float rowHeight = [noteOutlineView rowHeight];
NSTableColumn *tableColumn = [noteOutlineView
tableColumnWithIdentifier:@"note"];
id cell = [tableColumn dataCell];
- float width = NSWidth([cell drawingRectForBounds:NSMakeRect(0.0, 0.0,
[tableColumn width] - 17.0, rowHeight)]);
+ float indentation = [noteOutlineView indentationPerLevel];
+ float width = NSWidth([cell drawingRectForBounds:NSMakeRect(0.0, 0.0,
[tableColumn width] - indentation, rowHeight)]);
NSSize size = NSMakeSize(width, FLT_MAX);
- NSSize smallSize = NSMakeSize(width - [noteOutlineView
indentationPerLevel], FLT_MAX);
+ NSSize smallSize = NSMakeSize(width - indentation, FLT_MAX);
NSMutableArray *items = [NSMutableArray array];
id item = [sender representedObject];
Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m 2007-10-30 13:32:18 UTC (rev 3100)
+++ trunk/SKNotesDocument.m 2007-10-30 18:46:49 UTC (rev 3101)
@@ -230,9 +230,10 @@
float rowHeight = [outlineView rowHeight];
NSTableColumn *tableColumn = [outlineView
tableColumnWithIdentifier:@"note"];
id cell = [tableColumn dataCell];
- float width = NSWidth([cell drawingRectForBounds:NSMakeRect(0.0, 0.0,
[tableColumn width] - 17.0, rowHeight)]);
+ float indentation = [outlineView indentationPerLevel];
+ float width = NSWidth([cell drawingRectForBounds:NSMakeRect(0.0, 0.0,
[tableColumn width] - indentation, rowHeight)]);
NSSize size = NSMakeSize(width, FLT_MAX);
- NSSize smallSize = NSMakeSize(width - [outlineView indentationPerLevel],
FLT_MAX);
+ NSSize smallSize = NSMakeSize(width - indentation, FLT_MAX);
NSMutableArray *items = [NSMutableArray array];
id item = [sender representedObject];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit