Open jimiswells opened 3 years ago
same but on the bottom.
window.scrollTo(0, 0);
before html2canvas()
Yep, seems to be because of the scroll. This is annoying because when I have a mouse plugged in (macOS) the presence of the fixed scrollbar on the right means that all of the images come out with a bar on their left.
I was able to get around this by setting document.documentElement.style.overflow = "hidden"
before the call, and document.documentElement.style.overflow = ""
after.
On some occasions I'm getting a thick white line to the left of the image displaying in my div which is captured from another div offscreen.. capture code below -