Revision: 16448
http://sourceforge.net/p/skim-app/code/16448
Author: hofman
Date: 2026-09-11 14:48:57 +0000 (Fri, 11 Sep 2026)
Log Message:
-----------
make sure pdf scrollview content insets are set initially
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2026-09-11 14:34:21 UTC (rev 16447)
+++ trunk/SKMainWindowController.m 2026-09-11 14:48:57 UTC (rev 16448)
@@ -489,6 +489,9 @@
[centerContentView addSubview:view];
[NSLayoutConstraint activateConstraints:constraints];
+ if (mwcFlags.fullSizeContent)
+ [[pdfView embeddedScrollView]
setContentInsets:NSEdgeInsetsMake(titleBarHeight, 0.0, 0.0, 0.0)];
+
if (hasWindowSetup == NO) {
NSInteger windowSizeOption = [sud
integerForKey:SKInitialWindowSizeOptionKey];
@@ -504,7 +507,7 @@
// We can fit only after the PDF has been loaded
if (windowSizeOption == SKWindowOptionFit) {
- [[window contentView] layoutSubtreeIfNeeded];
+ //[[window contentView] layoutSubtreeIfNeeded];
[self performFit:self];
} else if (windowSizeOption == SKWindowOptionMaximize) {
[window zoom:self];
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