Revision: 29120
http://sourceforge.net/p/bibdesk/svn/29120
Author: hofman
Date: 2025-04-17 14:45:21 +0000 (Thu, 17 Apr 2025)
Log Message:
-----------
simplify calculation of fittin number of columns
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-17
14:31:21 UTC (rev 29119)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-17
14:45:21 UTC (rev 29120)
@@ -1246,7 +1246,7 @@
- (void)_setColumnsAndRowsFromContentWidth:(CGFloat)width {
- _numberOfColumns = MAX( 1, (NSInteger)floor( ( width - [self _leftMargin]
- [self _rightMargin] + _padding.width ) / [self _columnWidth] ) );
+ _numberOfColumns = MAX( 1, (NSInteger)floor( ( width - 2 *
DEFAULT_MARGIN.width ) / [self _columnWidth] ) );
_numberOfRows = ( [self numberOfIcons] + _numberOfColumns - 1 ) /
_numberOfColumns;
}
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