Revision: 12724 http://sourceforge.net/p/skim-app/code/12724 Author: hofman Date: 2022-01-19 22:19:52 +0000 (Wed, 19 Jan 2022) Log Message: ----------- special cases for auto sizing of row heights
Modified Paths: -------------- trunk/SKMainWindowController_UI.m trunk/SKNotesDocument.m Modified: trunk/SKMainWindowController_UI.m =================================================================== --- trunk/SKMainWindowController_UI.m 2022-01-19 17:37:34 UTC (rev 12723) +++ trunk/SKMainWindowController_UI.m 2022-01-19 22:19:52 UTC (rev 12724) @@ -883,9 +883,11 @@ width += [tc width] + [ov intercellSpacing].width; } width -= [ov intercellSpacing].width + [ov indentationPerLevel]; - if ([tableColumn isHidden] == NO) + if ([tableColumn isHidden] == NO && tableColumn == [[ov tableColumns] firstObject]) width -= noteColumnWidthOffset; width = fmax(10.0, width); + } else if ([tableColumn isHidden]) { + width = CGFLOAT_MAX; } else { width = [tableColumn width] - noteColumnWidthOffset; } Modified: trunk/SKNotesDocument.m =================================================================== --- trunk/SKNotesDocument.m 2022-01-19 17:37:34 UTC (rev 12723) +++ trunk/SKNotesDocument.m 2022-01-19 22:19:52 UTC (rev 12724) @@ -823,9 +823,11 @@ width += [tc width] + [outlineView intercellSpacing].width; } width -= [outlineView intercellSpacing].width + [outlineView indentationPerLevel]; - if ([tableColumn isHidden] == NO) + if ([tableColumn isHidden] == NO && tableColumn == [[ov tableColumns] firstObject]) width -= noteColumnWidthOffset; width = fmax(10.0, width); + } else if ([tableColumn isHidden]) { + width = CGFLOAT_MAX; } else { width = NSWidth([ov frameOfCellAtColumn:[[outlineView tableColumns] indexOfObject:tableColumn] row:0]); } 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