Revision: 29177 http://sourceforge.net/p/bibdesk/svn/29177 Author: hofman Date: 2025-04-23 22:00:33 +0000 (Wed, 23 Apr 2025) Log Message: ----------- Keep track of whether grid layout changes
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-23 21:51:29 UTC (rev 29176) +++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-23 22:00:33 UTC (rev 29177) @@ -1308,6 +1308,7 @@ BOOL autoHidesScrollers = NO; if ([scrollView respondsToSelector:@selector(scrollerStyle)] == NO || [scrollView scrollerStyle] == NSScrollerStyleLegacy) autoHidesScrollers = [scrollView autohidesScrollers]; + BOOL changed = NO; if (_fvFlags.displayMode == FVDisplayModeColumn) { @@ -1348,9 +1349,13 @@ [self willChangeValueForKey:@"iconScale"]; _iconSize = iconSize; [self didChangeValueForKey:@"iconScale"]; + changed = YES; } - _padding = padding; + if (NSEqualSizes(padding, _padding) == NO) { + padding = _padding; + changed = YES; + } } else if (_fvFlags.displayMode == FVDisplayModeRow) { @@ -1391,9 +1396,13 @@ [self willChangeValueForKey:@"iconScale"]; _iconSize = iconSize; [self didChangeValueForKey:@"iconScale"]; + changed = YES; } - padding = _padding; + if (NSEqualSizes(padding, _padding) == NO) { + padding = _padding; + changed = YES; + } } else { @@ -1423,6 +1432,8 @@ } + changed = (NSInteger)_numberOfColumns != numberOfColumns || (NSInteger)_numberOfRows != numberOfRows; + _numberOfColumns = numberOfColumns; _numberOfRows = numberOfRows; } @@ -1443,11 +1454,13 @@ frame.size.height = contentSize.height; [super setFrame:frame]; } + changed = YES; } + } + + if (changed) [self _updateHighlightRects]; - } - } - (NSUInteger)_indexForGridRow:(NSUInteger)rowIndex column:(NSUInteger)colIndex; 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