Revision: 29184
http://sourceforge.net/p/bibdesk/svn/29184
Author: hofman
Date: 2025-04-24 13:47:00 +0000 (Thu, 24 Apr 2025)
Log Message:
-----------
Substract border from backgroundview frame when adding to scrollview
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
09:45:07 UTC (rev 29183)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-24
13:47:00 UTC (rev 29184)
@@ -1134,7 +1134,7 @@
object:nil];
}
- if ([_backgroundView superview] != self) {
+ if ([_backgroundView superview] != self && [self superview] !=
newSuperview) {
[_backgroundView setFrame:[self bounds]];
[self addSubview:_backgroundView positioned:NSWindowBelow
relativeTo:nil];
}
@@ -1161,7 +1161,10 @@
[self resetCursorRects];
if (scrollView && [_backgroundView superview] != scrollView) {
- [_backgroundView setFrame:[scrollView bounds]];
+ NSRect frame = [scrollView bounds];
+ if ([scrollView borderType] != NSNoBorder)
+ frame = NSInsetRect(frame, 1.0, 1.0);
+ [_backgroundView setFrame: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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit