mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix] PDF footer margins (#5620)
closes #5612 the change in `ReaderView:recalculate()` causes the viewable page size to be calculated by not including the footer, causing the text not to get cut off. since the page area was not drawing under the footer `ReaderView:drawPageSurround()` had to be fixed to draw the margin under the footer so when tapping the footer off the area should be dran the background color.
This commit is contained in:
committed by
Frans de Jonge
parent
03fda96041
commit
6d3e7fcef6
@@ -30,7 +30,7 @@ describe("ReaderLink module", function()
|
||||
readerui:handleEvent(Event:new("SetScrollMode", false))
|
||||
readerui:handleEvent(Event:new("SetZoomMode", "page"))
|
||||
readerui.paging:onGotoPage(1)
|
||||
readerui.link:onTap(nil, {pos = {x = 363, y = 585}})
|
||||
readerui.link:onTap(nil, {pos = {x = 363, y = 565}})
|
||||
UIManager:run()
|
||||
assert.is.same(22, readerui.paging.current_page)
|
||||
end)
|
||||
@@ -71,7 +71,7 @@ describe("ReaderLink module", function()
|
||||
readerui:handleEvent(Event:new("SetScrollMode", false))
|
||||
readerui:handleEvent(Event:new("SetZoomMode", "page"))
|
||||
readerui.paging:onGotoPage(1)
|
||||
readerui.link:onTap(nil, {pos = {x = 363, y = 585}})
|
||||
readerui.link:onTap(nil, {pos = {x = 363, y = 565}})
|
||||
UIManager:run()
|
||||
assert.is.same(22, readerui.paging.current_page)
|
||||
readerui.link:onGoBackLink()
|
||||
|
||||
Reference in New Issue
Block a user