Commit d8bb7c30 by jimmyR Committed by Daniel Lee

resolves #3741 merge conflict

After a refactoring the sidemenu-canvas css class disappeared so changed the code from #3741 to use the main-view class instead.
parent 1cac6ece
......@@ -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