kevva / screenshot-stream

Capture screenshot of a website and return it as a stream
MIT License
236 stars 38 forks source link

setting page.clipRect only after delay #10

Closed mankdev closed 10 years ago

mankdev commented 10 years ago

Hello! Thank you for module and sorry for my english.

I think better move setting page.clipRect (caused by selector parameter) to timeout function, to handle following case: If element hidden by css (display:none) just after page loading and showing after 5 seconds (via JS for example) . getBoundingClientRect() returns wrong value

kevva commented 10 years ago

Thanks!