Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
Merge pull request #120 from stephencroberts/master
Browse files Browse the repository at this point in the history
Screenshot height for different viewport widths
  • Loading branch information
christian-bromann committed Sep 16, 2015
2 parents 15b0539 + d668b89 commit fb9ea38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/documentScreenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ module.exports = function documentScreenshot(fileName) {
/**
* remove scrollbars
*/
// reset height in case we're changing viewports
document.body.style.height = 'auto';
document.body.style.height = document.documentElement.scrollHeight + 'px';
document.body.style.overflow = 'hidden';

Expand Down

0 comments on commit fb9ea38

Please sign in to comment.