Revision: 13099
          http://sourceforge.net/p/skim-app/code/13099
Author:   hofman
Date:     2022-10-20 14:19:30 +0000 (Thu, 20 Oct 2022)
Log Message:
-----------
fix offset of scroll location on old versions

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2022-10-20 14:05:35 UTC (rev 13098)
+++ trunk/SKPDFView.m   2022-10-20 14:19:30 UTC (rev 13099)
@@ -1671,7 +1671,7 @@
         if ([self displaysHorizontally])
             bounds.origin.x = fmin(NSMidX(pageRect) - 0.5 * NSWidth(bounds), 
NSMinX(pageRect));
         else if ([clipView isFlipped])
-            bounds.origin.y = fmin(NSMidY(pageRect) - 0.5 * (NSHeight(bounds) 
- inset), NSMinY(pageRect));
+            bounds.origin.y = fmin(NSMidY(pageRect) - 0.5 * (NSHeight(bounds) 
+ inset), NSMinY(pageRect) - inset);
         else
             bounds.origin.y = fmax(NSMaxY(pageRect) - NSHeight(bounds) + 
inset, NSMidY(pageRect) - 0.5 * (NSHeight(bounds) - inset));
         [clipView scrollToPoint:[clipView constrainBoundsRect:bounds].origin];

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