Revision: 29192 http://sourceforge.net/p/bibdesk/svn/29192 Author: hofman Date: 2025-04-24 15:53:37 +0000 (Thu, 24 Apr 2025) Log Message: ----------- observe clipview frame changes after recalculating the grid size, otherwise we may be calculating the grid size twice
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:49:35 UTC (rev 29191) +++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-24 15:53:37 UTC (rev 29192) @@ -1150,8 +1150,6 @@ NSScrollView *scrollView = [self enclosingScrollView]; NSView *observedView = scrollView ? superview : self; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_handleSuperviewDidResize:) name:NSViewFrameDidChangeNotification object:observedView]; - [self _recalculateGridSize]; [[self window] invalidateCursorRectsForView:self]; @@ -1163,6 +1161,8 @@ [scrollView addSubview:_backgroundView positioned:NSWindowBelow relativeTo:nil]; [scrollView setDrawsBackground:NO]; } + + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_handleSuperviewDidResize:) name:NSViewFrameDidChangeNotification object:observedView]; } } 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