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