From: <ama...@us...> - 2006-03-29 05:33:14
|
Revision: 6057 Author: amaxwell Date: 2006-03-28 21:33:10 -0800 (Tue, 28 Mar 2006) ViewCVS: http://svn.sourceforge.net/bibdesk/?rev=6057&view=rev Log Message: ----------- Fix bug #1460062, tableview scrolls to beginning after delete. Modified Paths: -------------- trunk/bibdesk/BibDocument.m Modified: trunk/bibdesk/BibDocument.m =================================================================== --- trunk/bibdesk/BibDocument.m 2006-03-29 05:22:41 UTC (rev 6056) +++ trunk/bibdesk/BibDocument.m 2006-03-29 05:33:10 UTC (rev 6057) @@ -1343,8 +1343,11 @@ return; } + // deletion changes the scroll position + NSPoint scrollLocation = [[tableView enclosingScrollView] scrollPositionAsPercentage]; unsigned lastIndex = [[tableView selectedRowIndexes] lastIndex]; [self removePublications:[self selectedPublications]]; + [[tableView enclosingScrollView] setScrollPositionAsPercentage:scrollLocation]; // should select the publication following the last deleted publication (if any) if(lastIndex >= [tableView numberOfRows]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |