Revision: 12571
          http://sourceforge.net/p/skim-app/code/12571
Author:   hofman
Date:     2021-11-19 15:03:18 +0000 (Fri, 19 Nov 2021)
Log Message:
-----------
Perform auto layout on pdfview container before applying initial performFit: 
when opening documents with Fit, so the calculation is correct.

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2021-11-18 10:16:50 UTC (rev 12570)
+++ trunk/SKMainWindowController.m      2021-11-19 15:03:18 UTC (rev 12571)
@@ -514,8 +514,10 @@
     }
     
     // We can fit only after the PDF has been loaded
-    if (windowSizeOption == SKWindowOptionFit && hasWindowSetup == NO)
+    if (windowSizeOption == SKWindowOptionFit && hasWindowSetup == NO) {
+        [[pdfSplitView superview] layoutSubtreeIfNeeded];
         [self performFit:self];
+    }
     
     // Open snapshots?
     NSArray *snapshotSetups = nil;

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to