bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView ignores the outlineTableColumn's position


From: Alexander Malmberg
Subject: NSOutlineView ignores the outlineTableColumn's position
Date: Mon, 22 Apr 2002 01:45:06 +0200

Hi,

When [NSOutlineView -mouseDown] checks for a click on the
expand/collapse image, it ignores the outlineTableColumn's position.
Thus, it only works if the outlineTableColumn is the first column. I've
attached a patch that fixes this. (The trigger-zone for the image still
seems a bit off, though.)

Also, the patch changes the default for indentationMarkerFollowsCell to
YES, like the docs say.

- Alexander Malmberg
Index: NSOutlineView.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSOutlineView.m,v
retrieving revision 1.21
diff -u -r1.21 NSOutlineView.m
--- NSOutlineView.m     18 Apr 2002 22:44:04 -0000      1.21
+++ NSOutlineView.m     21 Apr 2002 23:42:28 -0000
@@ -119,7 +119,7 @@
   [super initWithFrame: frame];
 
   // Initial values
-  _indentationMarkerFollowsCell = NO;
+  _indentationMarkerFollowsCell = YES;
   _autoResizesOutlineColumn = NO;
   _autosaveExpandedItems = NO;
   _indentationPerLevel = 0.0;
@@ -867,7 +867,9 @@
        {
          position = _indentationPerLevel * level;
        }
-      
+
+      position += _columnOrigins[_clickedColumn];
+
       if(location.x >= position && location.x <= position + [image size].width)
        {
          if(![self isItemExpanded: [self itemAtRow: _clickedRow]])

reply via email to

[Prev in Thread] Current Thread [Next in Thread]