mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix footnotes and markers with full status bar
Take full/top status bar's height into account when computing coordinates. Also wrap getPageMargins() in CreDocument, so we don't use cre.cpp _document directly anywhere else.
This commit is contained in:
@@ -330,6 +330,14 @@ end
|
||||
function CreDocument:renderPage(pageno, rect, zoom, rotation)
|
||||
end
|
||||
|
||||
function CreDocument:getPageMargins()
|
||||
return self._document:getPageMargins()
|
||||
end
|
||||
|
||||
function CreDocument:getHeaderHeight()
|
||||
return self._document:getHeaderHeight()
|
||||
end
|
||||
|
||||
function CreDocument:gotoXPointer(xpointer)
|
||||
logger.dbg("CreDocument: goto xpointer", xpointer)
|
||||
self._document:gotoXPointer(xpointer)
|
||||
|
||||
Reference in New Issue
Block a user