Revision: 10220
http://sourceforge.net/p/skim-app/code/10220
Author: hofman
Date: 2019-01-17 19:38:29 +0000 (Thu, 17 Jan 2019)
Log Message:
-----------
make cell column one px larger to avoid rounding errors
Modified Paths:
--------------
trunk/SKMainWindowController.m
trunk/SKPresentationOptionsSheetController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2019-01-15 13:47:28 UTC (rev 10219)
+++ trunk/SKMainWindowController.m 2019-01-17 19:38:29 UTC (rev 10220)
@@ -693,7 +693,7 @@
for (NSString *label in pageLabels) {
[cell setStringValue:label];
- labelWidth = fmax(labelWidth, [cell cellSize].width);
+ labelWidth = fmax(labelWidth, [cell cellSize].width + 1.0);
}
labelWidth = fmin(labelWidth, MAX_PAGE_COLUMN_WIDTH);
Modified: trunk/SKPresentationOptionsSheetController.m
===================================================================
--- trunk/SKPresentationOptionsSheetController.m 2019-01-15 13:47:28 UTC
(rev 10219)
+++ trunk/SKPresentationOptionsSheetController.m 2019-01-17 19:38:29 UTC
(rev 10220)
@@ -220,7 +220,7 @@
[info setProperties:([ptEnum nextObject] ?: dictionary)];
[array addObject:info];
[cell setStringValue:[info label]];
- labelWidth = fmax(labelWidth, ceil([cell cellSize].width));
+ labelWidth = fmax(labelWidth, ceil([cell cellSize].width + 1.0));
[info release];
}
tn = next;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit