From 4e542f7d4f7289112fa2c601aaf007918fd6a6a7 Mon Sep 17 00:00:00 2001 From: HW Date: Sun, 8 Apr 2012 21:16:07 +0200 Subject: [PATCH] fixed small bug in panning to the bottom --- crereader.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crereader.lua b/crereader.lua index 698a0d2b5..f42c4a3b8 100644 --- a/crereader.lua +++ b/crereader.lua @@ -85,7 +85,7 @@ function CREReader:goto(pos, pos_type) self.doc:gotoXPointer(pos) pos = self.doc:getCurrentPos() else -- pos_type is PERCENT * 100 - pos = math.min(pos, self.doc:getFullHeight()) + pos = math.min(pos, self.doc:getFullHeight()-height) pos = math.max(pos, 0) self.doc:gotoPos(pos) end