Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olistic committed May 22, 2019
1 parent ea6fb1e commit 8e73eac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/elements/Page.js
Expand Up @@ -189,15 +189,17 @@ class Page extends Base {

this.calculateLayout();

this.size.height = this.isAutoHeight ? this.height : this.size.height;

instance.addPage({
size: [this.size.width, this.height],
size: [this.size.width, this.size.height],
margin: 0,
});

if (this.style.backgroundColor) {
instance
.fillColor(this.style.backgroundColor)
.rect(0, 0, this.size.width, this.height)
.rect(0, 0, this.size.width, this.size.height)
.fill();
}

Expand Down

0 comments on commit 8e73eac

Please sign in to comment.