cre: add Word Gap setting to bottom config panel (#4026)

Maps to crengine's Space Condensing feature (named Word Gap
as a similar feature is named for PDF)
This commit is contained in:
Robert
2018-06-30 16:55:43 +02:00
committed by poire-z
parent 27dfa30181
commit d29a65b96e
7 changed files with 45 additions and 19 deletions

View File

@@ -17,8 +17,8 @@ describe("ReaderLink module", function()
document = DocumentRegistry:openDocument(sample_epub),
}
readerui.rolling:onGotoPage(4)
readerui.link:onTap(nil, {pos = {x = 336, y = 668}})
assert.is.same(36, readerui.rolling.current_page)
readerui.link:onTap(nil, {pos = {x = 306, y = 710}})
assert.is.same(37, readerui.rolling.current_page)
end)
it("should jump to links in pdf page mode", function()
@@ -54,8 +54,8 @@ describe("ReaderLink module", function()
document = DocumentRegistry:openDocument(sample_epub),
}
readerui.rolling:onGotoPage(4)
readerui.link:onTap(nil, {pos = {x = 336, y = 668}})
assert.is.same(36, readerui.rolling.current_page)
readerui.link:onTap(nil, {pos = {x = 306, y = 710}})
assert.is.same(37, readerui.rolling.current_page)
readerui.link:onGoBackLink()
assert.is.same(4, readerui.rolling.current_page)
end)