Revision: 15950
          http://sourceforge.net/p/skim-app/code/15950
Author:   hofman
Date:     2026-01-03 17:51:28 +0000 (Sat, 03 Jan 2026)
Log Message:
-----------
Don't bas contentInsets on old values. Set topbbar inset also in presentation 
mode

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2026-01-03 17:39:16 UTC (rev 15949)
+++ trunk/SKMainWindowController.m      2026-01-03 17:51:28 UTC (rev 15950)
@@ -1896,10 +1896,8 @@
         
         if (mwcFlags.fullSizeContent) {
             NSScrollView *scrollView = [pdfView scrollView];
-            NSEdgeInsets insets = [scrollView contentInsets];
-            insets.top = barHeight + titleBarHeight;
             [scrollView setAutomaticallyAdjustsContentInsets:NO];
-            [scrollView setContentInsets:insets];
+            [scrollView setContentInsets:NSEdgeInsetsMake(barHeight + 
titleBarHeight, 0.0, 0.0, 0.0)];
             if ([pdfView autoScales] && ([pdfView extendedDisplayMode] & 
kPDFDisplaySinglePageContinuous) == 0) {
                 [pdfView setAutoScales:NO];
                 [pdfView setAutoScales:YES];
@@ -2672,12 +2670,7 @@
                 [leftSideController setTopInset:titleBarHeight];
             if ([[findController view] window]) {
                 [findBarTopConstraint setConstant:titleBarHeight];
-                if ([self interactionMode] != SKPresentationMode) {
-                    NSScrollView *scrollView = [pdfView scrollView];
-                    NSEdgeInsets insets = [scrollView contentInsets];
-                    insets.top = [findController height] + titleBarHeight;
-                    [scrollView setContentInsets:insets];
-                }
+                [[pdfView scrollView] 
setContentInsets:NSEdgeInsetsMake([findController height] + titleBarHeight, 
0.0, 0.0, 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