mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Add margin to align pre-paginated pages
This commit is contained in:
parent
bf4a68a9a2
commit
dfce8e58b7
3 changed files with 9 additions and 4 deletions
|
@ -189,11 +189,11 @@ class Layout {
|
|||
* @param {Contents} contents
|
||||
* @return {Promise}
|
||||
*/
|
||||
format(contents){
|
||||
format(contents, section){
|
||||
var formating;
|
||||
|
||||
if (this.name === "pre-paginated") {
|
||||
formating = contents.fit(this.columnWidth, this.height);
|
||||
formating = contents.fit(this.columnWidth, this.height, section);
|
||||
} else if (this._flow === "paginated") {
|
||||
formating = contents.columns(this.width, this.height, this.columnWidth, this.gap);
|
||||
} else { // scrolled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue