Skip to content

Commit

Permalink
Let the capture height be 100% by default
Browse files Browse the repository at this point in the history
When there is no height parameter set allow the full height instead of the 1500 default

For bbc#318
  • Loading branch information
andreilupu committed Oct 18, 2016
1 parent 2f23719 commit e5f9df2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/wraith/javascript/phantom.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ page.open(url, function(status) {
phantom.exit();
}

var height = page.evaluate(function() { return document.body.offsetHeight }),
width = page.evaluate(function() { return document.body.offsetWidth });

currentDimensions.viewportHeight = height;

page.viewportSize = { height:height, width:width }

setTimeout(checkStatusOfAssets, waitTime);
});

Expand Down

0 comments on commit e5f9df2

Please sign in to comment.