1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Set width to 100% for columns, fixes for pre-paginated

This commit is contained in:
Fred Chasen 2017-10-17 15:43:14 -07:00
parent b7640a1d7d
commit 333cb919a8
3 changed files with 31 additions and 35 deletions

View file

@ -247,12 +247,14 @@ class IframeView {
if(!this.iframe || this._expanding) return;
if(this.layout.name === "pre-paginated") return;
this._expanding = true;
if(this.layout.name === "pre-paginated") {
width = this.layout.columnWidth;
height = this.layout.height;
}
// Expand Horizontally
if(this.settings.axis === "horizontal") {
else if(this.settings.axis === "horizontal") {
// Get the width of the text
width = this.contents.textWidth();