Revision: 29193
http://sourceforge.net/p/bibdesk/svn/29193
Author: hofman
Date: 2025-04-24 15:59:23 +0000 (Thu, 24 Apr 2025)
Log Message:
-----------
simplify condition checks
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:53:37 UTC (rev 29192)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-24
15:59:23 UTC (rev 29193)
@@ -1101,11 +1101,14 @@
- (void)_handleSuperviewDidResize:(NSNotification *)notification {
NSScrollView *scrollView = [self enclosingScrollView];
- if ((scrollView && [[notification object] isEqual:[self superview]]) ||
(scrollView == nil && [[notification object] isEqual:self])) {
+ NSView *sender = [notification object];
+ if (scrollView && sender == [self superview]) {
[self _recalculateGridSize];
- if (scrollView)
- [_backgroundView setFrame:[[scrollView contentView] frame]];
+ [_backgroundView setFrame:[[scrollView contentView] frame]];
}
+ else if (scrollView == nil && sender == self) {
+ [self _recalculateGridSize];
+ }
}
- (void)viewWillMoveToSuperview:(NSView *)newSuperview
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