html2canvas: Uncaught Error: IndexSizeError: DOM Exception 1
Uncaught Error: IndexSizeError: DOM Exception 1
when it execute
ctx.drawImage(canvas, bounds.left, bounds.top, bounds.width, bounds.height, 0, 0, bounds.width, bounds.height);
while my code want to html2canvas.render a display:none element;
What causes this error ?
The error track :
(anonymous function) html2canvas.js:2828 _html2canvas.Renderer html2canvas.js:2552 options.complete html2canvas.js:2667 start html2canvas.js:2082 img.onload
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 19 (5 by maintainers)
I confirm https://github.com/niklasvh/html2canvas/pull/320 fixes this IE issue if bound.left is negative. This one happens if we try to render not visible (scrolled) components.
Thank you so much.