Revision: 12893
          http://sourceforge.net/p/skim-app/code/12893
Author:   hofman
Date:     2022-05-07 09:23:05 +0000 (Sat, 07 May 2022)
Log Message:
-----------
don't set content insets when automatically adjusting

Modified Paths:
--------------
    trunk/SKFindController.m
    trunk/SKTopBarView.m

Modified: trunk/SKFindController.m
===================================================================
--- trunk/SKFindController.m    2022-05-06 22:49:46 UTC (rev 12892)
+++ trunk/SKFindController.m    2022-05-07 09:23:05 UTC (rev 12893)
@@ -166,7 +166,8 @@
     if (covering) {
         NSScrollView *scrollView = [view descendantOfClass:[NSScrollView 
class]];
         [scrollView setAutomaticallyAdjustsContentInsets:visible == NO];
-        [scrollView setContentInsets:NSEdgeInsetsMake(visible ? barHeight + 
inset : inset, 0.0, 0.0, 0.0)];
+        if (visible)
+            [scrollView setContentInsets:NSEdgeInsetsMake(barHeight + inset, 
0.0, 0.0, 0.0)];
     }
     
     if (animate) {

Modified: trunk/SKTopBarView.m
===================================================================
--- trunk/SKTopBarView.m        2022-05-06 22:49:46 UTC (rev 12892)
+++ trunk/SKTopBarView.m        2022-05-07 09:23:05 UTC (rev 12893)
@@ -153,7 +153,7 @@
     
     [NSGraphicsContext saveGraphicsState];
     
-    if ([colors count] > 1) {
+    if ([colors count] > 1) {log_method();
         NSGradient *aGradient = [[NSGradient alloc] initWithColors:colors];
         [aGradient drawInRect:rect angle:90.0];
         [aGradient release];

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