1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Some books specify max-width style on body, which breaks pagination columns.

This commit is contained in:
Arvydas Sidorenko 2016-10-09 11:21:22 +02:00
parent 20f0f4e97d
commit 41802b3f73

View file

@ -600,6 +600,7 @@ Contents.prototype.columns = function(width, height, columnWidth, gap){
this.css("overflowY", "hidden"); this.css("overflowY", "hidden");
this.css("margin", "0"); this.css("margin", "0");
this.css("boxSizing", "border-box"); this.css("boxSizing", "border-box");
this.css("maxWidth", "inherit");
this.css(COLUMN_AXIS, "horizontal"); this.css(COLUMN_AXIS, "horizontal");
this.css(COLUMN_FILL, "auto"); this.css(COLUMN_FILL, "auto");