Revision: 12726 http://sourceforge.net/p/skim-app/code/12726 Author: hofman Date: 2022-01-20 10:42:56 +0000 (Thu, 20 Jan 2022) Log Message: ----------- local variable for intercell spacing
Modified Paths: -------------- trunk/SKMainWindowController_UI.m trunk/SKNotesDocument.m Modified: trunk/SKMainWindowController_UI.m =================================================================== --- trunk/SKMainWindowController_UI.m 2022-01-20 10:32:15 UTC (rev 12725) +++ trunk/SKMainWindowController_UI.m 2022-01-20 10:42:56 UTC (rev 12726) @@ -878,11 +878,12 @@ [cell setObjectValue:[item objectValue]]; // don't use cellFrameAtRow:column: as this needs the row height which we are calculating if ([(PDFAnnotation *)item type] == nil) { + CGFloat spacing = [ov intercellSpacing].width; for (NSTableColumn *tc in [ov tableColumns]) { if ([tc isHidden] == NO) - width += [tc width] + [ov intercellSpacing].width; + width += [tc width] + spacing; } - width -= [ov intercellSpacing].width + [ov indentationPerLevel]; + width -= spacing + [ov indentationPerLevel]; if ([tableColumn isHidden] == NO && tableColumn == [[ov tableColumns] firstObject]) width -= noteColumnWidthOffset; width = fmax(10.0, width); Modified: trunk/SKNotesDocument.m =================================================================== --- trunk/SKNotesDocument.m 2022-01-20 10:32:15 UTC (rev 12725) +++ trunk/SKNotesDocument.m 2022-01-20 10:42:56 UTC (rev 12726) @@ -818,11 +818,12 @@ id cell = [tableColumn dataCell]; [cell setObjectValue:[item objectValue]]; if ([(PDFAnnotation *)item type] == nil) { + CGFloat spacing = [outlineView intercellSpacing].width; for (NSTableColumn *tc in [outlineView tableColumns]) { if ([tc isHidden] == NO) - width += [tc width] + [outlineView intercellSpacing].width; + width += [tc width] + spacing; } - width -= [outlineView intercellSpacing].width + [outlineView indentationPerLevel]; + width -= spacing + [outlineView indentationPerLevel]; if ([tableColumn isHidden] == NO && tableColumn == [[ov tableColumns] firstObject]) width -= noteColumnWidthOffset; width = fmax(10.0, width); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit