bump crengine: fix max image height, handle <epub:switch> (#4390)

Includes:
- (Upstream) Fix dangerous compile warnings
- Fix max image height to prevent spurious page breaks
- Hide <epub:case> in <epub:switch>, show only <epub:default>

Adds a style tweak to show <epub:case> and hide <epub:default>
for the curious person.
This commit is contained in:
poire-z
2018-12-08 22:58:11 +01:00
committed by GitHub
parent 0407b577f5
commit 98c3f0d366
5 changed files with 23 additions and 10 deletions

View File

@@ -186,13 +186,13 @@ describe("Readerrolling module", function()
it("should show pages for different word gap", function()
readerui.document:setSpaceCondensing(100)
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
assert.are.same(267, readerui.document:getPageCount())
assert.are.same(266, readerui.document:getPageCount())
readerui.document:setSpaceCondensing(75)
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
assert.are.same(262, readerui.document:getPageCount())
assert.are.same(261, readerui.document:getPageCount())
readerui.document:setSpaceCondensing(50)
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
assert.are.same(248, readerui.document:getPageCount())
assert.are.same(247, readerui.document:getPageCount())
end)
end)