Revision: 12120
          http://sourceforge.net/p/skim-app/code/12120
Author:   hofman
Date:     2021-02-14 17:49:33 +0000 (Sun, 14 Feb 2021)
Log Message:
-----------
Make sure table views fit in scroll view, so they will resize

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2021-02-10 15:32:35 UTC (rev 12119)
+++ trunk/SKMainWindowController.m      2021-02-14 17:49:33 UTC (rev 12120)
@@ -729,6 +729,12 @@
         [tableColumn setMaxWidth:labelWidth];
         [tableColumn setWidth:labelWidth];
         [tv sizeToFit];
+        NSRect frame = [tv frame];
+        CGFloat width = NSWidth([[[tv enclosingScrollView] contentView] 
visibleRect]);
+        if (NSWidth(frame) < width) {
+            frame.size.width = width;
+            [tv setFrame:frame];
+        }
     }
 }
 

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