Commit 5f1fe135 by Daniel Lee

Merge branch 'jimmyR-master' resolves #3741

parents 1cac6ece d8bb7c30
......@@ -49,6 +49,15 @@
});
if (canvas || tries === 1000) {
var bb = page.evaluate(function () {
return document.getElementsByClassName("main-view")[0].getBoundingClientRect();
});
page.clipRect = {
top: bb.top,
left: bb.left,
width: bb.width,
height: bb.height
};
page.render(params.png);
phantom.exit();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment