Skip to content

Commit

Permalink
Also set page.clipRect
Browse files Browse the repository at this point in the history
Apparently this helps on some platforms, and it seems like it won't hurt. See #45.
  • Loading branch information
domenic committed Aug 5, 2016
1 parent a8c71f3 commit dabcf89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/converter.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ function convert(resize) {
width: dimensions.width,
height: dimensions.height
};
page.clipRect = {
top: 0,
left: 0,
width: dimensions.width,
height: dimensions.height
};
} catch (e) {
console.error("Unable to calculate or set dimensions.");
console.error(e);
Expand Down

0 comments on commit dabcf89

Please sign in to comment.