Fix graphs created in not-displayed divs.
authorKlaus Weidner <klausw@google.com>
Tue, 11 Jun 2013 18:38:12 +0000 (11:38 -0700)
committerKlaus Weidner <klausw@google.com>
Tue, 11 Jun 2013 18:38:12 +0000 (11:38 -0700)
commitc28088bca853c359d62bd49d29b05a238423f354
tree72649a1f167b465360148666400276e79e32a372
parentd7b9859046b35285abc989d2cbd82cb63f06cb52
Fix graphs created in not-displayed divs.

This distinguishes two cases:

- graphs with explicit height/width in graph options. They should
  be drawn correctly after display, no resize needed.

- graphs without explicit height/width are supposed to inherit
  the size from the surrounding div. They needs a .resize()
  call after display.

Tests are included for both.

Fixes issue 238.
auto_tests/tests/resize.js
dygraph.js