summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-07-01 15:20:09 +0300
committerAndrew Dolgov <[email protected]>2018-07-01 15:20:09 +0300
commitd80e7a5c5ecbef3836bfdb871acc867bc3d7054e (patch)
treefc6ace99d3f0956b9ad7075cef275be0d2d5cab7
parent3625b63499f529cc51b9f6ccb7e49c398371289b (diff)
fix minspreadwidth
-rw-r--r--read.html12
1 files changed, 7 insertions, 5 deletions
diff --git a/read.html b/read.html
index b9d600d..469b0cf 100644
--- a/read.html
+++ b/read.html
@@ -394,14 +394,16 @@
}
});
- var book = ePub({
- restore: false,
- minSpreadWidth: 961,
- });
+ var book = ePub();
window.book = book;
- var rendition = book.renderTo("reader", {width: '100%', height: '100%'});
+ var rendition = book.renderTo("reader", {
+ width: '100%',
+ height: '100%',
+ minSpreadWidth: 961
+ });
+
var displayed = rendition.display();
var fontSize;