From e6cb3277b4e2f6acd4a1cc43cf8df0b8e5f155ac Mon Sep 17 00:00:00 2001 From: Arvydas Sidorenko Date: Sun, 9 Oct 2016 11:19:34 +0200 Subject: [PATCH 1/2] Book.open(url) should use the argument value if given. --- src/book.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/book.js b/src/book.js index 68cf047..c081424 100644 --- a/src/book.js +++ b/src/book.js @@ -98,7 +98,7 @@ Book.prototype.open = function(_url, options){ if (window && window.location && uri) { absoluteUri = uri.absoluteTo(window.location.href); this.url = absoluteUri.toString(); - } if (window && window.location) { + } else if (window && window.location) { this.url = window.location.href; } else { this.url = _url; From 41802b3f737559e99056f1483ad9da2b05ebbd12 Mon Sep 17 00:00:00 2001 From: Arvydas Sidorenko Date: Sun, 9 Oct 2016 11:21:22 +0200 Subject: [PATCH 2/2] Some books specify max-width style on body, which breaks pagination columns. --- src/contents.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/contents.js b/src/contents.js index 84c0342..2689cbf 100644 --- a/src/contents.js +++ b/src/contents.js @@ -600,6 +600,7 @@ Contents.prototype.columns = function(width, height, columnWidth, gap){ this.css("overflowY", "hidden"); this.css("margin", "0"); this.css("boxSizing", "border-box"); + this.css("maxWidth", "inherit"); this.css(COLUMN_AXIS, "horizontal"); this.css(COLUMN_FILL, "auto");