2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00

recalculate page size after each call of drawPage

Only after renderPage is called can koptdocument update
reflowed page size. And the recalculate acts as a page
size updater here.
This commit is contained in:
chrox 2012-11-29 21:44:18 +08:00
parent aa9fe4b01c
commit 4dd9232194

View File

@ -44,6 +44,7 @@ function ReaderView:paintTo(bb, x, y)
self.state.zoom, self.state.zoom,
self.state.rotation, self.state.rotation,
self.render_mode) self.render_mode)
self:recalculate()
else else
self.ui.document:drawCurrentView( self.ui.document:drawCurrentView(
bb, bb,