1. Chris Leonello
  2. jqplot
Issue #733 open

INVALID_STATE_ERR exception when drawing on 0x0 size canvas

Zsombor Paroczi
created an issue

Chrome (24.0.1312.57 Mac) raises "Uncaught Error: INVALID_STATE_ERR: DOM Exception 11" when drawing 0 sized bubble on boublechart.

This happens here:

else if (tagname == 'canvas') {
                newContext.drawImage(el, left, top);

An obvious fix would be an extra line checking the 0x0 sized canvas. like:

if ((el.width>0) && (el.height>0))

Comments (2)

  1. Log in to comment