Revision: 29191
          http://sourceforge.net/p/bibdesk/svn/29191
Author:   hofman
Date:     2025-04-24 15:49:35 +0000 (Thu, 24 Apr 2025)
Log Message:
-----------
set frame for backgroundView to clipview frame

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2025-04-24 
15:42:35 UTC (rev 29190)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2025-04-24 
15:49:35 UTC (rev 29191)
@@ -1103,12 +1103,8 @@
     NSScrollView *scrollView = [self enclosingScrollView];
     if ((scrollView && [[notification object] isEqual:[self superview]]) || 
(scrollView == nil && [[notification object] isEqual:self])) {
         [self _recalculateGridSize];
-        if (scrollView) {
-            NSRect frame = [scrollView bounds];
-            if ([scrollView borderType] != NSNoBorder)
-                frame = NSInsetRect(frame, 1.0, 1.0);
-            [_backgroundView setFrame:frame];
-        }
+        if (scrollView)
+            [_backgroundView setFrame:[[scrollView contentView] frame]];
     }
 }
 
@@ -1163,10 +1159,7 @@
             [self resetCursorRects];
         
         if (scrollView && [_backgroundView superview] != scrollView) {
-            NSRect frame = [scrollView bounds];
-            if ([scrollView borderType] != NSNoBorder)
-                frame = NSInsetRect(frame, 1.0, 1.0);
-            [_backgroundView setFrame:frame];
+            [_backgroundView setFrame:[[scrollView contentView] frame]];
             [scrollView addSubview:_backgroundView positioned:NSWindowBelow 
relativeTo:nil];
             [scrollView setDrawsBackground:NO];
         }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to