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; 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");