Revision: 15947
http://sourceforge.net/p/skim-app/code/15947
Author: hofman
Date: 2026-01-03 17:12:31 +0000 (Sat, 03 Jan 2026)
Log Message:
-----------
base contentInsets for pdfView on automatic contentInsets
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2026-01-02 17:00:59 UTC (rev 15946)
+++ trunk/SKMainWindowController.m 2026-01-03 17:12:31 UTC (rev 15947)
@@ -1896,8 +1896,10 @@
if (mwcFlags.fullSizeContent) {
NSScrollView *scrollView = [pdfView scrollView];
+ NSEdgeInsets insets = [scrollView contentInsets];
+ insets.top = barHeight + titleBarHeight;
[scrollView setAutomaticallyAdjustsContentInsets:NO];
- [scrollView setContentInsets:NSEdgeInsetsMake(barHeight +
titleBarHeight, 0.0, 0.0, 0.0)];
+ [scrollView setContentInsets:insets];
if ([pdfView autoScales] && ([pdfView extendedDisplayMode] &
kPDFDisplaySinglePageContinuous) == 0) {
[pdfView setAutoScales:NO];
[pdfView setAutoScales:YES];
@@ -2670,8 +2672,12 @@
[leftSideController setTopInset:titleBarHeight];
if ([[findController view] window]) {
[findBarTopConstraint setConstant:titleBarHeight];
- if ([self interactionMode] != SKPresentationMode)
- [[pdfView scrollView]
setContentInsets:NSEdgeInsetsMake([findController height] + titleBarHeight,
0.0, 0.0, 0.0)];
+ if ([self interactionMode] != SKPresentationMode) {
+ NSScrollView *scrollView = [pdfView scrollView];
+ NSEdgeInsets insets = [scrollView contentInsets];
+ insets.top = [findController height] + titleBarHeight;
+ [scrollView setContentInsets:insets];
+ }
}
}
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