From 3d37bed4590b12fad01e628031820f046ff9615d Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 3 Aug 2009 11:35:37 -0600 Subject: [PATCH] Fix off-by-one error --- imp/js/ViewPort.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/js/ViewPort.js b/imp/js/ViewPort.js index 9efa2471a..28a6e69ee 100644 --- a/imp/js/ViewPort.js +++ b/imp/js/ViewPort.js @@ -224,7 +224,7 @@ var ViewPort = Class.create({ break; case 1: - s.moveScroll(Math.min(rownum, this.getMetaData('total_rows') - this.getPageSize() + 1)); + s.moveScroll(Math.min(rownum - 1, this.getMetaData('total_rows') - this.getPageSize())); break; } -- 2.11.0