aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-09-07 14:05:45 +0000
committerrowanbeentje <rowan@beent.je>2009-09-07 14:05:45 +0000
commit884ac3db36f3addee4183d976655a91994a5f656 (patch)
treec6926e36e4d5e329fb379e635b80f7fd67d89060 /Source
parent2441b2c439a3da072ea634aaaf1345d2c24b6158 (diff)
downloadsequelpro-884ac3db36f3addee4183d976655a91994a5f656.tar.gz
sequelpro-884ac3db36f3addee4183d976655a91994a5f656.tar.bz2
sequelpro-884ac3db36f3addee4183d976655a91994a5f656.zip
- Ensure table viewport is correctly restored for navigation history/SPF usage following TableContent cleanups in r1183/r1204
Diffstat (limited to 'Source')
-rw-r--r--Source/TableContent.m5
1 files changed, 5 insertions, 0 deletions
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];
}