Revision: 16227
          http://sourceforge.net/p/skim-app/code/16227
Author:   hofman
Date:     2026-05-05 16:27:56 +0000 (Tue, 05 May 2026)
Log Message:
-----------
check for first visile column as 0th column can be hidden

Modified Paths:
--------------
    trunk/SKNotesDocument.m

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2026-05-05 16:00:42 UTC (rev 16226)
+++ trunk/SKNotesDocument.m     2026-05-05 16:27:56 UTC (rev 16227)
@@ -747,7 +747,14 @@
     if (ndFlags.autoResizeRows) {
         NSInteger oldColumn = [[[notification userInfo] 
objectForKey:@"NSOldColumn"] integerValue];
         NSInteger newColumn = [[[notification userInfo] 
objectForKey:@"NSNewColumn"] integerValue];
-        if (oldColumn == 0 || newColumn == 0)
+        NSInteger firstColumn = 0;
+        for (NSTableColumn *tc in [outlineView tableColumns]) {
+            if ([tc isHidden])
+                ++firstColumn;
+            else
+                break;
+        }
+        if (oldColumn == firstColumn || newColumn == firstColumn)
             [self performSelectorOnce:@selector(resetRowHeights) 
afterDelay:0.0];
     }
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to