dom-to-image icon indicating copy to clipboard operation
dom-to-image copied to clipboard

Can't capture scrolled elements

Open dushyanttessact opened this issue 5 years ago • 4 comments

Use case: description, code

jsfiddle

scroll down and then capture the screen, check screenshot it will only show the top elements and not the scrolled ones.

dushyanttessact avatar May 16 '19 08:05 dushyanttessact

I am also having this issue

andomain avatar Aug 07 '19 10:08 andomain

You can turn off the overflow, run DomToImage, then turn it back on again. If that's too distracting to the user, append a clone of your chosen DIV with overflow: visible at the bottom of the page. I do this on https://beatjosh.com/budgets/FY2019/CTH (click the SNAPSHOT button in the top right toolbar). Not ideal, but perhaps good enough.

MSCAU avatar Jan 04 '20 03:01 MSCAU

is there a solution for this? i wanted to capture only the scrolled content. for e.g if there are 100 rows in a table and I scrolled at 50th and do capture is should get from 50th row but now its going back to top. Even turnoff overflow is not helping here as it always scroll top to before capture and my scrolled content is not captured.

kalandher avatar Aug 17 '22 11:08 kalandher

+1

HenryLin0914 avatar Aug 23 '22 03:08 HenryLin0914