Revision: 15949
          http://sourceforge.net/p/skim-app/code/15949
Author:   hofman
Date:     2026-01-03 17:39:16 +0000 (Sat, 03 Jan 2026)
Log Message:
-----------
declare view as scroll view

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

Modified: trunk/SKSideViewController.m
===================================================================
--- trunk/SKSideViewController.m        2026-01-03 17:25:56 UTC (rev 15948)
+++ trunk/SKSideViewController.m        2026-01-03 17:39:16 UTC (rev 15949)
@@ -85,7 +85,7 @@
 }
 
 - (void)displayTableAtIndex:(NSUInteger)idx animate:(BOOL)animate {
-    NSView *newView = [[[self tableViews] objectAtIndex:idx] 
enclosingScrollView];
+    NSScrollView *newView = [[[self tableViews] objectAtIndex:idx] 
enclosingScrollView];
     if ([newView superview] != nil)
         return;
     
@@ -111,7 +111,7 @@
     [[SKImageToolTipWindow sharedToolTipWindow] orderOut:self];
     
     [newView setFrame:[oldView frame]];
-    CGFloat inset = [newView respondsToSelector:@selector(borderType)] && 
[(NSScrollView *)newView borderType] != NSNoBorder ? -BORDER_INSET : 0.0;
+    CGFloat inset = [newView borderType] == NSNoBorder ? 0.0 : -BORDER_INSET;
     NSArray *constraints = @[
         [[newView leadingAnchor] constraintEqualToAnchor:[contentView 
leadingAnchor] constant:inset],
         [[contentView trailingAnchor] constraintEqualToAnchor:[newView 
trailingAnchor] constant:inset],

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