Only resize canvas if the size changed.
authorKlaus Weidner <klausw@google.com>
Tue, 11 Jun 2013 20:18:58 +0000 (13:18 -0700)
committerKlaus Weidner <klausw@google.com>
Tue, 11 Jun 2013 20:18:58 +0000 (13:18 -0700)
commitd82a31648f38271d2e662f8a7f8d1610ec99df59
tree96259cc7353c69ea5e756809e4815c7b23771f7e
parentb5157325c87df7eb1d210e27e98fe45362f0c693
Only resize canvas if the size changed.

Resizing the canvas erases it, and Dygraphs had skipped the redraw
when it thought it wasn't necessary, leading to blank graphs after
a redundant .resize() call.
auto_tests/tests/resize.js
dygraph.js