set visible page count when loading document

pull/431/head
chrox 10 years ago
parent 6413fb1692
commit 865815b42b

@ -3,6 +3,7 @@ local CreOptions = require("ui/data/creoptions")
local Document = require("document/document")
local Configurable = require("ui/reader/configurable")
local Font = require("ui/font")
local Device = require("ui/device")
local Screen = require("ui/screen")
local DEBUG = require("dbg")
-- TBD: DrawContext
@ -117,6 +118,9 @@ function CreDocument:loadDocument()
if not self.info.has_pages then
self.info.doc_height = self._document:getFullHeight()
end
if Device:getModel() ~= "KindleDXG" then
self:setVisiblePageCount(1)
end
end
function CreDocument:close()

Loading…
Cancel
Save