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:
parent
b7640a1d7d
commit
333cb919a8
3 changed files with 31 additions and 35 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue