HTML2Canvas does not render full div, only what is visible on screen?

I hope that help you:

html2canvas(htmlSource, {scrollY: -window.scrollY})
    .then(function(canvas) {
        var img = canvas.toDataURL();
        window.open(img);
    });

Leave a Comment