I'm trying to use a canvas element, but the height can't exceed 16384
pixels. If i try with 16385
pixels, I get a IndexSizeError
in IE11. This works fine in Chrome. The canvas is used in a PDF generation, and I don't really have time to move the generation to the server.
I've googled a bit, and it seems like the size might be different based on platform and browser.
Is it the browsers assigned memory and memory settings that decide this?
EDIT: I found some information here:
Note The maximum size of the rendered area on a canvas is from 0,0 to 8192 x 8192 pixels, regardless of the size of the canvas. For example, a canvas is created with a width and height of 8292 pixels. A rectangular fill is then applied as "ctx.fillRect (0,0, canvas.width, canvas.height)".Only the area within the coordinates (0, 0, 8192, 8192) can be rendered, leaving a 100 pixel border on the right and bottom of the canvas.
Seem like I can have twice the size. Maybe this is just for IE9.