From 884ac3db36f3addee4183d976655a91994a5f656 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 7 Sep 2009 14:05:45 +0000 Subject: - Ensure table viewport is correctly restored for navigation history/SPF usage following TableContent cleanups in r1183/r1204 --- Source/TableContent.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/TableContent.m') diff --git a/Source/TableContent.m b/Source/TableContent.m index 5d05a5e2..2efd6d75 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -366,6 +366,11 @@ // Restore the view origin if appropriate if (!NSEqualRects(selectionViewportToRestore, NSZeroRect)) { + + // Let the table know the size of the newly available data + [tableContentView reloadData]; + + // Scroll the viewport to the saved location selectionViewportToRestore.size = [tableContentView visibleRect].size; [tableContentView scrollRectToVisible:selectionViewportToRestore]; } -- cgit v1.2.3