mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Simplify iframe view expanding
This commit is contained in:
parent
8d2b9cc8d4
commit
eff216fd2d
5 changed files with 57 additions and 135 deletions
|
@ -128,8 +128,10 @@ class Layout {
|
|||
// colWidth = (width - gap) / divisor;
|
||||
// gap = gap / divisor;
|
||||
colWidth = (width / divisor) - gap;
|
||||
pageWidth = colWidth + gap;
|
||||
} else {
|
||||
colWidth = width;
|
||||
pageWidth = width;
|
||||
}
|
||||
|
||||
if (this.name === "pre-paginated" && divisor > 1) {
|
||||
|
@ -137,7 +139,6 @@ class Layout {
|
|||
}
|
||||
|
||||
spreadWidth = (colWidth * divisor) + gap;
|
||||
pageWidth = colWidth + (gap / 2);
|
||||
|
||||
delta = width;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue