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:
poire-z
2018-10-12 17:51:58 +02:00
parent e869b40625
commit 9d8531a4b5
4 changed files with 19 additions and 6 deletions

View File

@@ -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)