Revision: 28372 http://sourceforge.net/p/bibdesk/svn/28372 Author: hofman Date: 2023-09-23 16:48:45 +0000 (Sat, 23 Sep 2023) Log Message: ----------- use cellSize instead of fittingSzie to auto size main table columns, fittingSize does not return the content size for text fields anymore
Modified Paths: -------------- trunk/bibdesk/BibDocument_DataSource.m Modified: trunk/bibdesk/BibDocument_DataSource.m =================================================================== --- trunk/bibdesk/BibDocument_DataSource.m 2023-09-23 15:30:32 UTC (rev 28371) +++ trunk/bibdesk/BibDocument_DataSource.m 2023-09-23 16:48:45 UTC (rev 28372) @@ -241,8 +241,12 @@ } view = tmpView; } - if ([view imageView] && [view textField] == nil) + if ([view imageView] == nil && [view textField]) + width = fmax(width, ceil([[[view textField] cell] cellSize].width)); + else if ([view imageView] && [view textField] == nil) width = fmax(width, [tv rowHeight]); + else if ([view imageView] && [view textField]) + width = fmax(width, ceil([[[view textField] cell] cellSize].height) + ceil([[[view textField] cell] cellSize].width)); else width = fmax(width, [view fittingSize].width); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit