diff --git a/lib/wraith/javascript/phantom.js b/lib/wraith/javascript/phantom.js index 78f1a89b..34e11bcc 100644 --- a/lib/wraith/javascript/phantom.js +++ b/lib/wraith/javascript/phantom.js @@ -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); });