Revision: 14528
          http://sourceforge.net/p/skim-app/code/14528
Author:   hofman
Date:     2024-10-07 15:57:18 +0000 (Mon, 07 Oct 2024)
Log Message:
-----------
tableview setup in windowdidload

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

Modified: trunk/SKPresentationOptionsSheetController.m
===================================================================
--- trunk/SKPresentationOptionsSheetController.m        2024-10-07 15:48:46 UTC 
(rev 14527)
+++ trunk/SKPresentationOptionsSheetController.m        2024-10-07 15:57:18 UTC 
(rev 14528)
@@ -169,6 +169,9 @@
     // collapse the table, it is already hidden
     [boxLeadingConstraint setConstant:BOX_OFFSET];
     
+    if (@available(macOS 11.0, *))
+        [tableView setStyle:NSTableViewStylePlain];
+    
     [tableView registerForDraggedTypes:[SKTransitionInfo 
readableTypesForPasteboard:[NSPasteboard 
pasteboardWithName:NSPasteboardNameDrag]]];
     
     [tableView setTypeSelectHelper:[SKTypeSelectHelper 
typeSelectHelperWithMatchOption:SKFullStringMatch]];
@@ -229,9 +232,6 @@
     [tableColumn setMaxWidth:labelWidth];
     [tableColumn setWidth:labelWidth];
     
-    if (@available(macOS 11.0, *))
-        [tableView setStyle:NSTableViewStylePlain];
-    
     NSScrollView *scrollView = [tableView enclosingScrollView];
     CGFloat width = [[[tableView tableColumns] valueForKeyPath:@"@sum.width"] 
doubleValue] + NSWidth([scrollView frame]) - [scrollView contentSize].width + 
3.0 * [tableView intercellSpacing].width;
     [tableWidthConstraint setConstant:width];

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