1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Render pre-paginated spreads in single and continuous managers

This commit is contained in:
Fred Chasen 2016-10-24 14:55:15 +02:00
parent 20f0f4e97d
commit 1a26c1901e
8 changed files with 200 additions and 96 deletions

View file

@ -76,6 +76,10 @@ Layout.prototype.calculate = function(_width, _height, _gap){
colWidth = width;
}
if (this.name === "pre-paginated" && divisor > 1) {
width = colWidth;
}
spreadWidth = colWidth * divisor;
delta = (colWidth + gap) * divisor;