Revision: 29122
http://sourceforge.net/p/bibdesk/svn/29122
Author: hofman
Date: 2025-04-17 15:05:26 +0000 (Thu, 17 Apr 2025)
Log Message:
-----------
Make sure padding divided over left and right are integral
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
15:04:27 UTC (rev 29121)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-17
15:05:26 UTC (rev 29122)
@@ -1168,8 +1168,8 @@
{
NSSize size = DEFAULT_PADDING;
// ??? magic number here... using a fixed padding looked funny at some
sizes, so this is now adjustable
- CGFloat extraPadding = round(PADDING_STRETCH * scale);
- size.width += 2 * round(extraPadding / 2);
+ CGFloat extraPadding = 2 * round( PADDING_STRETCH * scale / 2 );
+ size.width += extraPadding;
size.height += extraPadding + [self _textHeight];
return size;
}
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