From fbaacf6f4f093faaa20af083190d62877e9b3874 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 2 Dec 2010 23:48:55 +0000 Subject: - Fix maximum table row resetting, which caused a bug when reloading a table with a saved page number when previously on a table with no rows. This addresses Issue #912. --- Source/SPTableContent.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/SPTableContent.m') diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 498b6a2a..483ab35d 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -321,6 +321,10 @@ // Restore the table content view to the top left [tableContentView scrollRowToVisible:0]; [tableContentView scrollColumnToVisible:0]; + + // Set the maximum table rows to an estimated count pre-load + maxNumRows = [[tableDataInstance statusValueForKey:@"Rows"] integerValue]; + maxNumRowsIsEstimate = YES; } // If no table has been supplied, reset the view to a blank table and disabled elements. -- cgit v1.2.3