Revision: 15942
          http://sourceforge.net/p/skim-app/code/15942
Author:   hofman
Date:     2026-01-02 10:32:38 +0000 (Fri, 02 Jan 2026)
Log Message:
-----------
extend by scroller width rather than reduce twice

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2026-01-02 10:24:09 UTC (rev 15941)
+++ trunk/SKPDFView.m   2026-01-02 10:32:38 UTC (rev 15942)
@@ -3047,11 +3047,12 @@
         else
             scale = NSWidth(bounds) / NSWidth(rect);
         [self setScaleFactor:scale];
+        
         if (scrollerWidth > 0.0 && ([scrollView hasHorizontalScroller] == NO 
|| [scrollView hasVerticalScroller] == NO)) {
-            if ([scrollView hasVerticalScroller])
-                bounds.size.width -= scrollerWidth;
-            if ([scrollView hasHorizontalScroller])
-                bounds.size.height -= scrollerWidth;
+            if ([scrollView hasVerticalScroller] == NO)
+                bounds.size.width += scrollerWidth;
+            if ([scrollView hasHorizontalScroller] == NO)
+                bounds.size.height += scrollerWidth;
             if (NSWidth(bounds) * NSHeight(rect) > NSWidth(rect) * 
NSHeight(bounds))
                 scale = NSHeight(bounds) / NSHeight(rect);
             else

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